stylesheets/flint/functions/lib/_replace-substring.scss in flint-gs-1.6.4 vs stylesheets/flint/functions/lib/_replace-substring.scss in flint-gs-1.6.5
- old
+ new
@@ -7,12 +7,12 @@
// @return [string]
@function replace-substring($string, $substring, $new-substring: " ") {
// Loop through length of string
@for $i from 1 through str-length($string) {
- // Get index and length of substring
- $sub-index: str-index($string, $substring);
- $sub-length: str-length($substring);
+ // Get index and length of substring
+ $sub-index: str-index($string, $substring);
+ $sub-length: str-length($substring);
// If count is index of substring
@if $i == $sub-index {
// Slice string to exclude substring
$string-before: str-slice($string, 1, $i - 1);