fix: codeScanning vuln

This commit is contained in:
Sidharth Vinod 2022-08-21 11:45:20 +05:30
parent 4710f67baf
commit cd4b1ea245
No known key found for this signature in database
GPG Key ID: FB5CCD378D3907CD
1 changed files with 3 additions and 2 deletions

View File

@ -116,8 +116,9 @@ const getUrl = (useAbsolute: boolean): string => {
window.location.host +
window.location.pathname +
window.location.search;
url = url.replace(/\(/g, '\\(');
url = url.replace(/\)/g, '\\)');
// TODO Q: Why is this necessary?
url = url.replaceAll(/\(/g, '\\(');
url = url.replaceAll(/\)/g, '\\)');
}
return url;