lib/jsonpath/parser.rb in jsonpath-0.9.4 vs lib/jsonpath/parser.rb in jsonpath-0.9.5

- old
+ new

@@ -45,10 +45,10 @@ operand = if t == 'true' true elsif t == 'false' false else - operator.strip == '=~' ? t.to_regexp : t.delete("'").strip + operator.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