Skip to content

Commit dec5eaa

Browse files
committed
Update comment
1 parent f9ec2ab commit dec5eaa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/babosa/identifier.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def clean!
107107
#
108108
# @return String
109109
def word_chars!
110-
# `\P{L}` = Any non-Unicode letter
110+
# `^\p{letter}` = Any non-Unicode letter
111111
# `&&` = add the following character class
112112
# `[^ _\n\r]` = Anything other than space, underscore, newline or linefeed
113113
gsub!(/[[^\p{letter}]&&[^ _\-\n\r]]/, "")

0 commit comments

Comments
 (0)