mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-09 00:18:00 +01:00
8 lines
258 B
TypeScript
8 lines
258 B
TypeScript
|
export const rewriteHTML = (input: string, rewriteValue: string): string => {
|
||
|
let result = input;
|
||
|
result = result.replace(/::baseUriPath::/gi, rewriteValue);
|
||
|
result = result.replace(/\/static/gi, `${rewriteValue}/static`);
|
||
|
|
||
|
return result;
|
||
|
};
|