@kong/design-tokens 1.18.3-pr.613.857d684.0 → 1.18.3-pr.613.969ab5a.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/stylelint-plugin/rules/use-css-token/index.mjs +3 -2
- package/dist/tokens/css/custom-properties.css +1 -1
- package/dist/tokens/js/cjs/index.d.ts +1 -1
- package/dist/tokens/js/cjs/index.js +1 -1
- package/dist/tokens/js/index.d.ts +1 -1
- package/dist/tokens/js/index.mjs +1 -1
- package/dist/tokens/less/variables.less +1 -1
- package/dist/tokens/scss/_map.scss +1 -1
- package/dist/tokens/scss/_variables.scss +1 -1
- package/package.json +1 -1
|
@@ -36,8 +36,9 @@ const findAllTokenOccurrences = (value, token) => {
|
|
|
36
36
|
// Enforces exact format: var(--token, $token) with exactly one space before comma
|
|
37
37
|
const isTokenProperlyWrapped = (value, tokenIndex, token, cssToken) => {
|
|
38
38
|
// Use regex to find all var(--token, $token) patterns
|
|
39
|
-
// Escape
|
|
40
|
-
const
|
|
39
|
+
// Escape $ in token since it's a special regex character
|
|
40
|
+
const escapedToken = token.replace(/\$/g, '\\$')
|
|
41
|
+
const pattern = new RegExp(`var\\(${cssToken}, ${escapedToken}\\)`, 'g')
|
|
41
42
|
|
|
42
43
|
// Find all matches
|
|
43
44
|
let match
|
package/dist/tokens/js/index.mjs
CHANGED