Skip to content

Commit 1c2ae95

Browse files
committed
fix: str-slice can't start at 0
See sass/sass-spec#1441 Closes #2920
1 parent ac338df commit 1c2ae95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fn_strings.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ namespace Sass {
185185
if (end_at > size) { end_at = (double)size; }
186186
if (start_at < 0) {
187187
start_at += size + 1;
188-
if (start_at < 0) start_at = 0;
188+
if (start_at <= 0) start_at = 1;
189189
}
190190
else if (start_at == 0) { ++ start_at; }
191191

0 commit comments

Comments
 (0)