We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9ec2ab commit dec5eaaCopy full SHA for dec5eaa
lib/babosa/identifier.rb
@@ -107,7 +107,7 @@ def clean!
107
#
108
# @return String
109
def word_chars!
110
- # `\P{L}` = Any non-Unicode letter
+ # `^\p{letter}` = Any non-Unicode letter
111
# `&&` = add the following character class
112
# `[^ _\n\r]` = Anything other than space, underscore, newline or linefeed
113
gsub!(/[[^\p{letter}]&&[^ _\-\n\r]]/, "")
0 commit comments