Open erezarnon opened 1 year ago
const redactor = new SyncRedactor({ builtInRedactors: { names: { replaceWith: 'ANONYMOUS_PERSON' } } }); redactor.redact('Dear David Johnson');
Expected: Dear ANONYMOUS_PERSON Actual: Dear PERSON_NAME
Dear ANONYMOUS_PERSON
Dear PERSON_NAME
Also, ideally we could pass in replaceWith: 'REDACTED__$3' which would allow to do some post-processing and keep track of what's being redacted.
replaceWith: 'REDACTED__$3'
const redactor = new SyncRedactor({ builtInRedactors: { names: { replaceWith: 'REDACTED__$3' } } }); redactor.redact('Dear David Johnson');
Expected: Dear REDACTED__David REDACTED__Johnson
Dear REDACTED__David REDACTED__Johnson
I've the same problem. Seems like exactly the same as #34 and fixed by #46
Expected:
Dear ANONYMOUS_PERSON
Actual:Dear PERSON_NAME
Also, ideally we could pass in
replaceWith: 'REDACTED__$3'
which would allow to do some post-processing and keep track of what's being redacted.Expected:
Dear REDACTED__David REDACTED__Johnson