Properly escape U+0009 CHARACTER TABULATION in unquoted strings (#504)

This commit is contained in:
Natalie Weizenbaum 2018-10-18 18:50:03 -07:00 committed by GitHub
parent d9c836e9d0
commit 6bdb49a9d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
## 1.14.4
* Properly escape U+0009 CHARACTER TABULATION in unquoted strings.
## 1.14.3
* Treat `:before`, `:after`, `:first-line`, and `:first-letter` as

View File

@ -395,7 +395,7 @@ abstract class Parser {
if (identifierStart ? isNameStart(value) : isName(value)) {
return new String.fromCharCode(value);
} else if (value <= 0x1F ||
} else if ((value <= 0x1F && value != $tab) ||
value == 0x7F ||
(identifierStart && isDigit(value))) {
var buffer = new StringBuffer()..writeCharCode($backslash);

View File

@ -1,5 +1,5 @@
name: sass
version: 1.14.3
version: 1.14.4
description: A Sass implementation in Dart.
author: Dart Team <misc@dartlang.org>
homepage: https://github.com/sass/dart-sass