mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-05-04 21:37:11 -04:00
fix: lint
This commit is contained in:
parent
c3c956bb6e
commit
ec6c5b4066
1 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
import { maskString } from 'data-guardian';
|
import { type SensitiveContentKey, maskString } from 'data-guardian';
|
||||||
import ipRegex from 'ip-regex';
|
import ipRegex from 'ip-regex';
|
||||||
|
|
||||||
const jwtRegex = /\b([a-zA-Z0-9_=]{5,})\.([a-zA-Z0-9_=]{5,})\.([a-zA-Z0-9_\-\+\/=]{5,})\b/g;
|
const jwtRegex = /\b([a-zA-Z0-9_=]{5,})\.([a-zA-Z0-9_=]{5,})\.([a-zA-Z0-9_\-\+\/=]{5,})\b/g;
|
||||||
|
@ -29,6 +29,6 @@ export function maskSensitiveData({
|
||||||
}, {
|
}, {
|
||||||
excludeMatchers: [...excludedMatchers, ...[
|
excludeMatchers: [...excludedMatchers, ...[
|
||||||
'passwordMention', 'password', 'passwordSubstring',
|
'passwordMention', 'password', 'passwordSubstring',
|
||||||
]],
|
]] as SensitiveContentKey[],
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue