Skip to content

Commit 10a3558

Browse files
committed
Don't escape starting "-" for an ident
1 parent 6dda460 commit 10a3558

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

parse-css.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -752,7 +752,7 @@ function escapeIdent(string) {
752752
return Array.from(String(string), (e,i)=>{
753753
const code = e.codePointAt(0);
754754
if(i == 0) {
755-
if(namestartchar(code)) return e;
755+
if(namestartchar(code) || code === 0x2d) return e;
756756
return escapeIdentCode(code);
757757
}
758758
if(namechar(code)) return e;

0 commit comments

Comments
 (0)