Skip to content

Commit

Permalink
Fix #197
Browse files Browse the repository at this point in the history
  • Loading branch information
terehov committed Dec 20, 2022
1 parent 118c5b8 commit c10dc94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BaseLogger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ export class BaseLogger<LogObj> {
: ((source: T): T => {
// mask regEx
this.settings?.maskValuesRegEx?.forEach((regEx) => {
source = (source as string).replace(regEx, this.settings.maskPlaceholder) as T;
source = (source as string)?.replace(regEx, this.settings.maskPlaceholder) as T;
});
return source;
})(source);
Expand Down

0 comments on commit c10dc94

Please sign in to comment.