Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix regexp for footer taget names

  • Loading branch information...
commit bab7d71774fdc307ca902053df62f75d564d5af9 1 parent fc8db62
@melborne authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/calour/runner.rb
View
4 lib/calour/runner.rb
@@ -59,11 +59,11 @@ def parse_color(args)
end
def t_title(key)
- %w(year month today saturday sunday holiday neighbor footer).detect { |t| t =~ /#{key}/ }.intern
+ %w(year month today saturday sunday holiday neighbor footer).detect { |t| t =~ /^#{key}/ }.intern
end
def t_color(values)
- values.inject([]) { |mem, val| mem << Term::ANSIColor.attributes.detect { |c| c =~ /#{val}/ } }
+ values.inject([]) { |mem, val| mem << Term::ANSIColor.attributes.detect { |c| c =~ /^#{val}/ } }
end
def print_calendar(mon, year)

0 comments on commit bab7d71

Please sign in to comment.
Something went wrong with that request. Please try again.