lib/gamefic/query/text.rb in gamefic-1.7.0 vs lib/gamefic/query/text.rb in gamefic-2.0.0
- old
+ new
@@ -8,10 +8,11 @@
end
}
super
end
def resolve(subject, token, continued: false)
- parts = token.split(Matchable::SPLIT_REGEXP)
+ return Matches.new([], '', token) unless accept?(token)
+ parts = token.split(Keywords::SPLIT_REGEXP)
cursor = []
matches = []
i = 0
parts.each { |w|
cursor.push w