stylesheets/flint/functions/lib/_replace-substring.scss in flint-gs-1.12.0 vs stylesheets/flint/functions/lib/_replace-substring.scss in flint-gs-2.0.0.rc.1
- old
+ new
@@ -1,12 +1,13 @@
-// Replace substring
-// -------------------------------------------------------------------------------
-// @param $string [string] : string that contains substring
-// @param $substring [string] : substring to replace
-// @param $new-substring [string] : new string to replace sub with
-// -------------------------------------------------------------------------------
-// @return [string]
-
+/**
+ * Replace substring
+ *
+ * @param {String} $string - string that contains substring
+ * @param {String} $substring - substring to replace
+ * @param {String} $new-substring (" ") - new string to replace sub with
+ *
+ * @return {String}
+ */
@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);