Skip to content

Commit 2263d9b

Browse files
authored
Merge pull request #2951 from nschonni/fix--str-slice-can't-start-at-0
fix: str-slice can't start at 0
2 parents 6ea4cb2 + 1c2ae95 commit 2263d9b

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
@@ -188,7 +188,7 @@ namespace Sass {
188188
if (end_at > size) { end_at = (double)size; }
189189
if (start_at < 0) {
190190
start_at += size + 1;
191-
if (start_at < 0) start_at = 0;
191+
if (start_at <= 0) start_at = 1;
192192
}
193193
else if (start_at == 0) { ++ start_at; }
194194

0 commit comments

Comments
 (0)