diff --git a/src/internal/constants.ts b/src/internal/constants.ts index f3961692..1c9f1c35 100644 --- a/src/internal/constants.ts +++ b/src/internal/constants.ts @@ -83,4 +83,4 @@ export const REQUIRE_STATEMENT_REGEX: RegExp = * @const {RegExp} STATIC_IMPORT_REGEX */ export const STATIC_IMPORT_REGEX: RegExp = - /(?[\w\t\n\r $*,/{}]+)from\s*)?["']\s*(?(?<="\s*)[^"]*[^\s":](?=\s*")|(?<=["']\s*)[^']*[^\s':](?=\s*'))\s*["']\s*/gm + /(?[\w\t\n\r $*,/{}]+)from\s*)?["']\s*(?(?<="\s*)[^"]*[^\s"](?=\s*")|(?<='\s*)[^']*[^\s'](?=\s*'))\s*["'][\s;]*/gm