lib/csl/date_part.rb in csl-1.0.0.pre17 vs lib/csl/date_part.rb in csl-1.0.0.pre18

- old
+ new

@@ -27,10 +27,10 @@ 'long' end end Schema.values[:date_part][:form].each do |type| - pattern = Regexp.new("^#{type}", true) + pattern = Regexp.new("^#{type}$", true) define_method("#{type}?".tr('-', '_')) do form =~ pattern end end \ No newline at end of file