Skip to content

Commit 72457e9

Browse files
authored
Merge pull request #2249 from xzyfer/fix/str-slice
Fix str-slice with negative end-at for real
2 parents a6f5665 + 8f60a96 commit 72457e9

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)