diff --git a/src/extensionsIntegrated/CSSColorPreview/main.js b/src/extensionsIntegrated/CSSColorPreview/main.js index 97a07affd..09001b2ca 100644 --- a/src/extensionsIntegrated/CSSColorPreview/main.js +++ b/src/extensionsIntegrated/CSSColorPreview/main.js @@ -77,7 +77,8 @@ define(function (require, exports, module) { if ((lineText.indexOf('/*') !== -1) || (lineText.indexOf('*/') !== -1)) { continue; } else { - let regx = /:.*?;/g; + let regx = /:[^;]*;/g; + lineText = lineText.match(regx); if (lineText) { let tempColors = lineText[0].match(COLOR_REGEX);