Skip to content

Commit 8123c37

Browse files
committed
format
1 parent 12ad4c8 commit 8123c37

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/compiler-sfc/src/cssVars.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,10 @@ function genVarName(id: string, raw: string, isProd: boolean): string {
3131
return hash(id + raw)
3232
} else {
3333
// escape ASCII Punctuation & Symbols
34-
return `${id}-${raw.replace(/[ !"#$%&'()*+,./:;<=>?@[\\\]^`{|}~]/g, s => `\\${s}`)}`
34+
return `${id}-${raw.replace(
35+
/[ !"#$%&'()*+,./:;<=>?@[\\\]^`{|}~]/g,
36+
s => `\\${s}`
37+
)}`
3538
}
3639
}
3740

0 commit comments

Comments
 (0)