Skip to content

Commit a0d16a4

Browse files
author
Uku Pattak
committed
Remove | from word regex
1 parent d64838d commit a0d16a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/Tokenizer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export default class Tokenizer {
5151
}
5252

5353
createWordRegex(specialChars = []) {
54-
return new RegExp(`^([\\w|${specialChars.join("|")}]+)`);
54+
return new RegExp(`^([\\w${specialChars.join("")}]+)`);
5555
}
5656

5757
createStringRegex(stringTypes) {

0 commit comments

Comments
 (0)