Skip to content

Commit a76089a

Browse files
committed
refactor: allow multiple replacement in version replacement
1 parent 7e92de0 commit a76089a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/react/hooks/paragon/useParagonThemeUrls.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const useParagonThemeUrls = (config) => useMemo(() => {
1616
const brandCoreCssUrl = typeof paragonThemeUrls.core.urls === 'object' ? paragonThemeUrls.core.urls.brandOverride : undefined;
1717
const defaultThemeVariants = paragonThemeUrls.defaults;
1818

19-
// Local versions of @edx/paragon and @edx/brand
19+
// Local versions of @openedx/paragon and @edx/brand
2020
const localParagonVersion = PARAGON_THEME?.paragon?.version;
2121
const localBrandVersion = PARAGON_THEME?.brand?.version;
2222

src/react/hooks/paragon/utils.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,5 +83,5 @@ export const handleVersionSubstitution = ({ url, wildcardKeyword, localVersion }
8383
if (!url || !url.includes(wildcardKeyword) || !localVersion) {
8484
return url;
8585
}
86-
return url.replace(wildcardKeyword, localVersion);
86+
return url.replaceAll(wildcardKeyword, localVersion);
8787
};

0 commit comments

Comments
 (0)