switch to global regexp

(cherry picked from commit 1c7ce348ce)
This commit is contained in:
Dan Cech
2021-11-03 12:48:58 +02:00
committed by dsotirakis
parent c86d520821
commit 28e2be2a8a
+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');
}