lib/elastic_apm/sql/tokenizer.rb in elastic-apm-3.15.1 vs lib/elastic_apm/sql/tokenizer.rb in elastic-apm-4.0.0.beta.1

- old
+ new

@@ -108,11 +108,11 @@ if peek == '_' || peek == '$' || peek =~ DIGIT possible_keyword = false next next_char end - next next_char if peek =~ ALPHA + next next_char if ALPHA.match?(peek) break end return IDENT unless possible_keyword @@ -249,10 +249,10 @@ next_char period = true when 'e', 'E' return NUMBER if exponent next_char - next_char if peek_char =~ /[+-]/ + next_char if /[+-]/.match?(peek_char) else break end end NUMBER