File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 3
3
* Produce better output for numbers with complex units in ` meta.inspect() ` and
4
4
debugging messages.
5
5
6
+ * When generating CSS error messages to display in-browser, escape all code
7
+ points that aren't in the US-ASCII region. Previously only code points U+0100
8
+ LATIN CAPITAL LETTER A WITH MACRON were escaped.
9
+
6
10
### JS API
7
11
8
12
* Fix a bug where certain exceptions could produce ` SourceSpan ` s that didn't
Original file line number Diff line number Diff line change @@ -82,12 +82,12 @@ class SassException extends SourceSpanException {
82
82
.replaceAll ("\r\n " , "\n " );
83
83
term_glyph.ascii = wasAscii;
84
84
85
- // For the string comment, render all non-ASCII characters as escape
85
+ // For the string comment, render all non-US- ASCII characters as escape
86
86
// sequences so that they'll show up even if the HTTP headers are set
87
87
// incorrectly.
88
88
var stringMessage = StringBuffer ();
89
89
for (var rune in SassString (toString (color: false )).toString ().runes) {
90
- if (rune > 0xFF ) {
90
+ if (rune > 0x7F ) {
91
91
stringMessage
92
92
..writeCharCode ($backslash)
93
93
..write (rune.toRadixString (16 ))
You can’t perform that action at this time.
0 commit comments