We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 118c5b8 commit c10dc94Copy full SHA for c10dc94
src/BaseLogger.ts
@@ -216,7 +216,7 @@ export class BaseLogger<LogObj> {
216
: ((source: T): T => {
217
// mask regEx
218
this.settings?.maskValuesRegEx?.forEach((regEx) => {
219
- source = (source as string).replace(regEx, this.settings.maskPlaceholder) as T;
+ source = (source as string)?.replace(regEx, this.settings.maskPlaceholder) as T;
220
});
221
return source;
222
})(source);
0 commit comments