We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
The text was updated successfully, but these errors were encountered:
I've the same problem. Seems like exactly the same as #34 and fixed by #46
Sorry, something went wrong.
replaceWith
Successfully merging a pull request may close this issue.
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
The text was updated successfully, but these errors were encountered: