Skip to content

Commit 8f60a96

Browse files
committed
Fix str-slice with negative end-at for real
Fixes #2240 (for reals) Spec sass/sass-spec#1005
1 parent a6f5665 commit 8f60a96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/functions.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1021,7 +1021,7 @@ namespace Sass {
10211021

10221022
size_t size = utf8::distance(str.begin(), str.end());
10231023

1024-
if (end_at <= size * -1.0 && size > 1) {
1024+
if (end_at < size * -1.0 && size > 1) {
10251025
end_at = 0;
10261026
}
10271027
if (end_at < 0) {

0 commit comments

Comments
 (0)