Skip to content

Commit c10dc94

Browse files
committed
Fix #197
1 parent 118c5b8 commit c10dc94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/BaseLogger.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ export class BaseLogger<LogObj> {
216216
: ((source: T): T => {
217217
// mask regEx
218218
this.settings?.maskValuesRegEx?.forEach((regEx) => {
219-
source = (source as string).replace(regEx, this.settings.maskPlaceholder) as T;
219+
source = (source as string)?.replace(regEx, this.settings.maskPlaceholder) as T;
220220
});
221221
return source;
222222
})(source);

0 commit comments

Comments
 (0)