Attempt to fix "Incomplete multi-character sanitization"

Signed-off-by: Karan Shah <karan.shah@simplybusiness.co.uk>
This commit is contained in:
Karan Shah
2022-02-07 14:49:21 +00:00
parent a5aebe3e30
commit c16a3a60a0
@@ -33,7 +33,7 @@ export const generateAirbrakePathRewrite = (
const apiKey = options.airbrakeConfig.apiKey;
return path => {
let newPath = path.replace(/.+?(\/api)/, '');
let newPath = path.replace(/.+?(\/api)/g, '');
if (newPath.includes('?')) {
newPath += `&key=${apiKey}`;
} else {