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 d64838d commit a0d16a4Copy full SHA for a0d16a4
src/core/Tokenizer.js
@@ -51,7 +51,7 @@ export default class Tokenizer {
51
}
52
53
createWordRegex(specialChars = []) {
54
- return new RegExp(`^([\\w|${specialChars.join("|")}]+)`);
+ return new RegExp(`^([\\w${specialChars.join("")}]+)`);
55
56
57
createStringRegex(stringTypes) {
0 commit comments