lib/jsonpath/parser.rb in jsonpath-0.9.8 vs lib/jsonpath/parser.rb in jsonpath-0.9.9

- old
+ new

@@ -45,10 +45,10 @@ operand = if t == 'true' true elsif t == 'false' false else - operator.strip == '=~' ? t.to_regexp : t.gsub(%r{^'|'$}, '').strip + operator.to_s.strip == '=~' ? t.to_regexp : t.gsub(%r{^'|'$}, '').strip end elsif t = scanner.scan(/\/\w+\//) elsif t = scanner.scan(/.*/) raise "Could not process symbol: #{t}" end