Skip to content

Commit bad31be

Browse files
used the replaceAll instead of replace to replace all the occurrences of the special character
1 parent 1987e0a commit bad31be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/url-loader/src/plugins/overlays.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ export const OverlaysPlugin = /* #__PURE__ */ plugin({
312312
keyof typeof specialCharacters
313313
>
314314
)?.forEach((character: string) => {
315-
layerText = layerText?.replace(
315+
layerText = layerText?.replaceAll(
316316
character,
317317
specialCharacters[character],
318318
);

0 commit comments

Comments
 (0)