Skip to content

Commit

Permalink
fix(string.split()): add separator length.
Browse files Browse the repository at this point in the history
  • Loading branch information
sciborrudnicki committed Aug 19, 2023
1 parent 62c693c commit d0f372d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion string/_string.split.function.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
@if $index {
$result: list.append($result, unquote(string.slice($string, 1, $index - 1), $unquote));
@if $limit and $limit == $i {
$result: list.append($result, unquote(string.slice($string, $index + 1, -1), $unquote));
$result: list.append($result, unquote(string.slice($string, $index + string.length($separator), -1), $unquote));
$index: null;
} @else {
$string: string.slice($string, $index + string.length($separator));
Expand Down

0 comments on commit d0f372d

Please sign in to comment.