stylesheets/flint/functions/lib/_replace-substring.scss in flint-gs-2.0.1 vs stylesheets/flint/functions/lib/_replace-substring.scss in flint-gs-2.0.2
- old
+ new
@@ -11,10 +11,10 @@
*/
@function flint-replace-substring($string, $substring, $new-substring: " ") {
// Use Ruby function if available
@if $flint__use-ruby-functions {
- @return replace_substring($string, $substring, $new-substring);
+ @return flint_ruby_replace_substring($string, $substring, $new-substring);
} @else {
// 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);