fix: lint

This commit is contained in:
ShareVB 2024-07-12 23:24:09 +02:00
parent c3c956bb6e
commit ec6c5b4066

View file

@ -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[],
}); });
} }