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 5d59878 commit 7bc04dcCopy full SHA for 7bc04dc
packages/bundler-plugin-core/src/index.ts
@@ -344,7 +344,7 @@ export function createRollupDebugIdInjectionHooks() {
344
// As an additional complication `"use strict";`s may come after any number of comments.
345
const commentUseStrictRegex =
346
// Note: CodeQL complains that this regex potentially has n^2 runtime. This likely won't affect realistic files.
347
- /^(?:\s*|\/\*(?:.|\r|\n)*\*\/|\/\/.*[\n\r])*(?:"[^"]*";|'[^']*';)?/;
+ /^(?:\s*|\/\*(?:.|\r|\n)*?\*\/|\/\/.*[\n\r])*(?:"[^"]*";|'[^']*';)?/;
348
349
const match = code.match(commentUseStrictRegex)?.[0];
350
0 commit comments