forked from mystiq/hydrogen-web
actually remove lookbehind
This commit is contained in:
parent
c8b0354d07
commit
4c2c99fc07
1 changed files with 1 additions and 1 deletions
|
@ -163,7 +163,7 @@ export class Platform {
|
|||
// Make sure that loginToken does not end up in the logs
|
||||
const transformer = (item) => {
|
||||
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;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue