fix: codeScanning vuln
This commit is contained in:
parent
4710f67baf
commit
cd4b1ea245
|
@ -116,8 +116,9 @@ const getUrl = (useAbsolute: boolean): string => {
|
||||||
window.location.host +
|
window.location.host +
|
||||||
window.location.pathname +
|
window.location.pathname +
|
||||||
window.location.search;
|
window.location.search;
|
||||||
url = url.replace(/\(/g, '\\(');
|
// TODO Q: Why is this necessary?
|
||||||
url = url.replace(/\)/g, '\\)');
|
url = url.replaceAll(/\(/g, '\\(');
|
||||||
|
url = url.replaceAll(/\)/g, '\\)');
|
||||||
}
|
}
|
||||||
|
|
||||||
return url;
|
return url;
|
||||||
|
|
Loading…
Reference in New Issue