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 38c2325 commit 06f839dCopy full SHA for 06f839d
tokenizers/ecma-import/src/util.ts
@@ -25,9 +25,9 @@ export const regex2 = new RegExp(
25
* import { YozoraParser, YozoraParser as Parser } from '@yozora/parser'
26
*/
27
export const regex3 = new RegExp(
28
- /^import\s+(?:([\w]+)\s*,\s*)?/.source +
+ '^import\\s+(?:([\\w]+)\\s*,\\s*)?'+
29
namedImportRegex.source +
30
- /from\s+(['"])([^'"]+)\3/.source +
+ `from\\s+(['"])([^'"]+)\\3` +
31
endRegex.source,
32
)
33
0 commit comments