mirror of
https://github.com/danog/dart-sass.git
synced 2024-11-30 04:39:03 +01:00
parent
2105a138c0
commit
40df8e3bc1
@ -22,6 +22,10 @@
|
||||
* The `alpha()` function now produces clearer error messages when the wrong
|
||||
number of arguments are passed.
|
||||
|
||||
* Fix a bug where the `str-slice()` function could produce invalid output when
|
||||
passed a string that contains characters that aren't represented as a single
|
||||
byte in UTF-16.
|
||||
|
||||
## 1.22.2
|
||||
|
||||
### JavaScript API
|
||||
|
@ -113,7 +113,7 @@ final _slice =
|
||||
return SassString(
|
||||
string.text.substring(
|
||||
codepointIndexToCodeUnitIndex(string.text, startCodepoint),
|
||||
codepointIndexToCodeUnitIndex(string.text, endCodepoint) + 1),
|
||||
codepointIndexToCodeUnitIndex(string.text, endCodepoint + 1)),
|
||||
quotes: string.hasQuotes);
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user