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 1a8656e commit 1ba99b1Copy full SHA for 1ba99b1
1 file changed
src/lexer/regexUtil.ts
@@ -5,7 +5,7 @@ export const escapeRegExp = (string: string) => string.replace(/[.*+?^${}()|[\]\
5
6
export const NULL_REGEX = /^(?!)/; // zero-width negative lookahead, matches nothing
7
8
-export const WHITESPACE_REGEX = /(\s+)/uy;
+export const WHITESPACE_REGEX = /\s+/uy;
9
10
export const patternToRegex = (pattern: string): RegExp => new RegExp(`(?:${pattern})`, 'uy');
11
0 commit comments