Skip to content

Commit

Permalink
use sass:string instead of global built in function
Browse files Browse the repository at this point in the history
global built in functions are deprecated
  • Loading branch information
SeraphCoding committed Nov 26, 2024
1 parent e8491f8 commit da85c6e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions material-symbols/_core.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ $material-symbols-font-path: './' !default;

// @see https://github.com/twbs/bootstrap/blob/main/scss/_functions.scss
@function material-symbols-str-replace($string, $search, $replace: '') {
$index: str-index($string, $search);
$index: string.index($string, $search);
@if $index {
@return str-slice($string, 1, $index - 1) + $replace +
@return string.slice($string, 1, $index - 1) + $replace +
material-symbols-str-replace(
str-slice($string, $index + str-length($search)),
string.slice($string, $index + string.length($search)),
$search,
$replace
);
Expand Down

0 comments on commit da85c6e

Please sign in to comment.