Skip to content

Commit c29f00b

Browse files
committed
fix(parser): dash "-" needs no escape
Remaining parse errors in parser benchmark: 173/749
1 parent dc173c1 commit c29f00b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/code-point-range.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ export function mustAlwaysBeEscaped(char: string) {
122122
* Inside brackets `[$]` is allowed.
123123
*/
124124
export function mustBeEscapedOrInBrackets(char: string) {
125-
return '.^$*+?()[{-|/'.includes(char)
125+
return '.^$*+?()[{|/'.includes(char)
126126
}
127127

128128
export function neverMustBeEscaped(char: string) {

0 commit comments

Comments
 (0)