use a safe regexp for comments
This commit is contained in:
parent
2a6850c02e
commit
bd3f630617
|
@ -51,7 +51,7 @@
|
|||
')', 'gi');
|
||||
const RX_DETECT_FUNC = /(rgb|hsl)a?\(/iy;
|
||||
|
||||
const RX_COMMENT = /\/\*[\s\S]*?(?:\*\/|$)/g;
|
||||
const RX_COMMENT = /\/\*([^*]|\*(?!\/))*(\*\/|$)/g;
|
||||
const SPACE1K = ' '.repeat(1000);
|
||||
|
||||
// milliseconds to work on invisible colors per one run
|
||||
|
|
Loading…
Reference in New Issue
Block a user