Skip to content
Permalink
Browse files Browse the repository at this point in the history
Merge pull request #151 from grafana/dcech/sanitize-replaceAll
use global replace when sanitizing urls in 8.2.3
  • Loading branch information
dsotirakis committed Oct 25, 2021
2 parents 31b78d5 + 1c7ce34 commit 3cb5214
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/grafana-data/src/text/sanitize.ts
Expand Up @@ -40,5 +40,5 @@ export function escapeHtml(str: string): string {
}

export function sanitizeAngularInterpolation(url: string): string {
return url.replace('{{', '%7B%7B').replace('}}', '%7D%7D');
return url.replace(/\{\{/g, '%7B%7B').replace(/\}\}/g, '%7D%7D');
}

0 comments on commit 3cb5214

Please sign in to comment.