lib/jldrill/model/DeinflectionRules.rb in jldrill-0.5.1.7 vs lib/jldrill/model/DeinflectionRules.rb in jldrill-0.6.0.1

- old
+ new

@@ -1,5 +1,6 @@ +# encoding: utf-8 require 'jldrill/model/DataFile' require 'Context/Log' module JLDrill module Deinflection @@ -105,10 +106,10 @@ end def apply(rule) retVal = nil if !last.nil? && !hasReason(rule) - re = Regexp.new("(.*)#{rule.original}") + re = Regexp.new("(.*)#{rule.original}", nil) if re.match(last.dictionary) transform = Transform.new(last.dictionary, $1, rule) retVal = Match.new(transform, self) end end