Skip to content

Commit 56be581

Browse files
committed
rubocop edit
1 parent 08a8964 commit 56be581

File tree

1 file changed

+1
-1
lines changed
  • helpers/sql-obfuscation/lib/opentelemetry/helpers/query_summary

1 file changed

+1
-1
lines changed

helpers/sql-obfuscation/lib/opentelemetry/helpers/query_summary/tokenizer.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class Tokenizer
3131
quoted_identifier: /"(?:""|[^"\r\n])*"|`(?:``|[^`\r\n])*`|\[(?:[^\]\r\n])*\]/,
3232
keyword: /\b(?:SELECT|INSERT|UPDATE|DELETE|FROM|INTO|JOIN|CREATE|ALTER|DROP|TRUNCATE|WITH|UNION|TABLE|INDEX|PROCEDURE|VIEW|DATABASE)\b/i,
3333
identifier: /[a-zA-Z_][a-zA-Z0-9_.]*/,
34-
operator: /<=|>=|<>|!=|[=<>+\-*\/%,;()!?]/
34+
operator: %r{<=|>=|<>|!=|[=<>+\-*\/%,;()!?]}
3535
}.freeze
3636

3737
EXCLUDED_TYPES = %i[whitespace comment].freeze

0 commit comments

Comments
 (0)