diff --git a/vendor-overwrites/colorpicker/colorview.js b/vendor-overwrites/colorpicker/colorview.js index cf0729f7..3e57758c 100644 --- a/vendor-overwrites/colorpicker/colorview.js +++ b/vendor-overwrites/colorpicker/colorview.js @@ -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