validate-curp icon indicating copy to clipboard operation
validate-curp copied to clipboard

Forbidden words exceptions

Open RFUENTESEDUCEM opened this issue 2 years ago • 1 comments

How can i deactivate forbaidden words? Beacuse there are people who have CURP with forbaidden words but registered them before that validation began

RFUENTESEDUCEM avatar Apr 20 '23 18:04 RFUENTESEDUCEM

Hi @RFUENTESEDUCEM Thanks for reporting the problem. I wasn´t aware of this, can you share an example?

Some possible solutions are:

  1. Immediate solution: your application ignores the error when FORBIDDEN_WORD is the only existing error.
  2. I can add a "white-list" with valid CURPs that does not meet all of the validations. Similar to my library for RFCs: https://github.com/manuelmhtr/validate-rfc#known-issues

manuelmhtr avatar Apr 26 '23 22:04 manuelmhtr