Fix support for nested styles (#335)
This commit is contained in:
parent
c25c32a25f
commit
87156ce8e2
2 changed files with 2 additions and 2 deletions
|
|
@ -10,7 +10,7 @@ const stringReplaceAll = (string, substring, replacer) => {
|
|||
let endIndex = 0;
|
||||
let returnValue = '';
|
||||
do {
|
||||
returnValue += string.substr(endIndex, index - endIndex) + replacer;
|
||||
returnValue += string.substr(endIndex, index - endIndex) + substring + replacer;
|
||||
endIndex = index + substringLength;
|
||||
index = string.indexOf(substring, endIndex);
|
||||
} while (index !== -1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue