From fca61cd1150d7fe0adf136981b1033de1d8638bd Mon Sep 17 00:00:00 2001 From: Black Mirror Date: Fri, 27 Apr 2018 08:36:39 +0200 Subject: [PATCH] string-slice bugfix --- scss/types/_string.scss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scss/types/_string.scss b/scss/types/_string.scss index e56b708..af51809 100644 --- a/scss/types/_string.scss +++ b/scss/types/_string.scss @@ -59,9 +59,9 @@ /// @access public /// @param {string} $s - the string /// @param {string} $from [1] - the needle -/// @param {string} $to [null] - the needle +/// @param {string} $to [-1] - the needle /// @return {number} -@function string-slice($s, $from: 1, $to: null) { +@function string-slice($s, $from: 1, $to: -1) { @return str-slice($s, $from, $to); }