Attempt to fix "Incomplete multi-character sanitization"
Signed-off-by: Karan Shah <karan.shah@simplybusiness.co.uk>
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user