switch to global regexp

This commit is contained in:
Dan Cech
2021-10-22 16:40:45 -04:00
committed by GitHub
parent 8081dc9ee9
commit 1c7ce348ce
+1 -1
View File
@@ -40,5 +40,5 @@ export function escapeHtml(str: string): string {
}
export function sanitizeAngularInterpolation(url: string): string {
return url.replaceAll('{{', '%7B%7B').replaceAll('}}', '%7D%7D');
return url.replace(/\{\{/g, '%7B%7B').replace(/\}\}/g, '%7D%7D');
}