Skip to content

Commit 2a28995

Browse files
author
Jean-Philippe Zolesio
committed
Fix regex dos
1 parent 2551a57 commit 2a28995

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/parse/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ export const parse = (
532532
*/
533533
function atcustommedia(): CssCustomMediaAST | void {
534534
const pos = position();
535-
const m = /^@custom-media\s+(--\S+)\s*([^{;\s][^{;]*);/.exec(css);
535+
const m = /^@custom-media\s+(--\S+)\s+([^{;\s][^{;]*);/.exec(css);
536536
if (!m) {
537537
return;
538538
}

0 commit comments

Comments
 (0)