Skip to content

Commit

Permalink
Fix rubocop offense for redundant regex escape
Browse files Browse the repository at this point in the history
  • Loading branch information
tejasbubane authored and bbatsov committed May 31, 2020
1 parent 0facf3e commit b23ae1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rubocop/ast/node_pattern.rb
Expand Up @@ -119,7 +119,7 @@ class Compiler
).freeze
NUMBER = /-?\d+(?:\.\d+)?/.freeze
STRING = /".+?"/.freeze
METHOD_NAME = /\#?#{IDENTIFIER}[\!\?]?\(?/.freeze
METHOD_NAME = /\#?#{IDENTIFIER}[!?]?\(?/.freeze
PARAM_NUMBER = /%\d*/.freeze

SEPARATORS = /[\s]+/.freeze
Expand Down

0 comments on commit b23ae1c

Please sign in to comment.