Skip to content

Commit f983e3b

Browse files
committed
Don't escape "\t" for a string token
1 parent 0be23fd commit f983e3b

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
@@ -780,7 +780,7 @@ function escapeString(string) {
780780
// Escapes the contents (between the quotes) of a string
781781
return Array.from(String(string), e=>{
782782
const code = e.codePointAt(0);
783-
if(between(code, 0x0, 0x1f) || code === 0x7f) {
783+
if(between(code, 0x0, 0x8) || between(code, 0xa, 0x1f) || code === 0x7f) {
784784
return "\\" + code.toString(16) + " ";
785785
}
786786
if(code === 0x22 || code === 0x5c) {

0 commit comments

Comments
 (0)