Skip to content

Commit b3eb767

Browse files
committed
Fix code comment
1 parent 71083e8 commit b3eb767

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module.exports = string => {
66
}
77

88
// Escape characters with special meaning either inside or outside character sets.
9-
// Use a simple backslash escape when it’s always valid, and a \unnnn escape when the simpler form would be disallowed by Unicode patterns’ stricter grammar.
9+
// Use a simple backslash escape when it’s always valid, and a `\xnn` escape when the simpler form would be disallowed by Unicode patterns’ stricter grammar.
1010
return string
1111
.replace(/[|\\{}()[\]^$+*?.]/g, '\\$&')
1212
.replace(/-/g, '\\x2d');

0 commit comments

Comments
 (0)