lib/remi/cucumber/business_rules.rb in remi-0.2.11 vs lib/remi/cucumber/business_rules.rb in remi-0.2.12
- old
+ new
@@ -13,10 +13,11 @@
'double quote' => '"',
'single quote' => "'",
'windows' => "\r\n",
'unix' => "\n",
'windows or unix' => :auto,
+ 'null character' => 0.chr,
}
end
module ParseFormula
@@ -29,10 +30,10 @@
def base_regex
@base_regex ||= /\*(.*)\*/
end
def formulas
- @formulas ||= Remi::Lookup::RegexSieve.new({
+ @formulas ||= RegexSieve.new({
/(today|yesterday|tomorrow)/i => [:date_reference, :match_single_day],
/(this|last|previous|next) (day|month|year|week)/i => [:date_reference, :match_single_unit],
/(\d+)\s(day|days|month|months|year|years|week|weeks) (ago|from now)/i => [:date_reference, :match_multiple]
})
end