actually remove lookbehind

This commit is contained in:
Bruno Windels 2021-12-08 18:05:57 +01:00
parent c8b0354d07
commit 4c2c99fc07

View file

@ -163,7 +163,7 @@ export class Platform {
// Make sure that loginToken does not end up in the logs // Make sure that loginToken does not end up in the logs
const transformer = (item) => { const transformer = (item) => {
if (item.e?.stack) { if (item.e?.stack) {
item.e.stack = item.e.stack.replace(/(?<=\/\?loginToken=).+/, "?loginToken=<snip>"); item.e.stack = item.e.stack.replace(/\/\?loginToken=(.+)/, "?loginToken=<snip>");
} }
return item; return item;
}; };