diff --git a/src/helpers/_trim.scss b/src/helpers/_trim.scss index 2e79237..baebe2d 100644 --- a/src/helpers/_trim.scss +++ b/src/helpers/_trim.scss @@ -13,10 +13,10 @@ /// @function str-trim($string) { - @if (str-slice($string, 1, 1) == ' ') { - @return str-trim(str-slice($string, 2)); - } @else if (str-slice($string, str-length($string), -1) == ' ') { - @return str-trim(str-slice($string, 1, -2)); + @if (string.slice($string, 1, 1) == ' ') { + @return str-trim(string.slice($string, 2)); + } @else if (string.slice($string, string.length($string), -1) == ' ') { + @return str-trim(string.slice($string, 1, -2)); } @else { @return $string; }