Skip to content

Commit

Permalink
Fix a typo
Browse files Browse the repository at this point in the history
  • Loading branch information
koic committed May 31, 2020
1 parent 9ffd1cc commit 670d725
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rubocop/cop/style/redundant_regexp_escape.rb
Expand Up @@ -68,7 +68,7 @@ def slash_literal?(node)

def allowed_escape?(node, char, within_character_class)
# Strictly speaking a few single-letter metachars are currently
# unneccessary to "escape", e.g. g, i, E, F, but enumerating them is
# unnecessary to "escape", e.g. g, i, E, F, but enumerating them is
# rather difficult, and their behaviour could change over time with
# different versions of Ruby so that e.g. /\g/ != /g/
return true if /[[:alnum:]]/.match?(char)
Expand Down

0 comments on commit 670d725

Please sign in to comment.