diff --git a/lib/styles/template/scss/util.ts b/lib/styles/template/scss/util.ts index c91a5659..76f068d2 100644 --- a/lib/styles/template/scss/util.ts +++ b/lib/styles/template/scss/util.ts @@ -26,7 +26,7 @@ export function processValue(text: string): (Interpolation | string)[] { const elements = [] const value = text let start = 0 - const reg = /#\{[\s\S]*?\}|\$[\w\d-]+/gu + const reg = /#\{[\s\S]*?\}|\$[\w-]+/gu let re = null while ((re = reg.exec(value))) { elements.push(value.slice(start, re.index)) diff --git a/package-lock.json b/package-lock.json index 7e47a12c..74b80c8f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8148,9 +8148,9 @@ } }, "eslint-plugin-regexp": { - "version": "0.8.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-regexp/-/eslint-plugin-regexp-0.8.0.tgz", - "integrity": "sha512-cFZHXFgps5PydkwJ4R6/gd3rSpDnNyxeaFroBBLVqwMofZF+HnyuhpfNcv6hw4PFq37eAtjCP7UJBBDIS08/BA==", + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-regexp/-/eslint-plugin-regexp-0.9.0.tgz", + "integrity": "sha512-pNuLfFNjEZWrQKy3FXXJNqTbgq10401rlCIlXi7TOunzIpdu/L1D/jtCSYHsXaNXICdh22mClA8A7buphun3wg==", "dev": true, "requires": { "comment-parser": "^1.1.2", diff --git a/package.json b/package.json index 226781e6..ce46ee47 100644 --- a/package.json +++ b/package.json @@ -66,7 +66,7 @@ "eslint-plugin-jsonc": "^1.0.0", "eslint-plugin-node": "^11.1.0", "eslint-plugin-prettier": "^3.3.0", - "eslint-plugin-regexp": "^0.8.0", + "eslint-plugin-regexp": "^0.9.0", "eslint-plugin-vue": "^7.5.0", "eslint-plugin-vue-scoped-css": "^1.0.0", "eslint-plugin-yml": "^0.9.0",