Skip to content

Commit e15efa1

Browse files
Potential fix for code scanning alert no. 792: Incomplete string escaping or encoding
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent 32279bd commit e15efa1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/tools/design-tokens-converter/design-tokens-converter.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ function processSizingTokens(sizingObj, result, variables, parentKey = "") {
329329
result,
330330
variables,
331331
// Fix the variable name from corder to corner
332-
`${parentKey ? `${parentKey}-` : ""}${key.replace("$", "").replace("corder", "corner")}`,
332+
`${parentKey ? `${parentKey}-` : ""}${key.replace(/\$/g, "").replace("corder", "corner")}`,
333333
);
334334
continue;
335335
}

0 commit comments

Comments
 (0)