developersdo / sdq

📦 Utility functions to validate cédula and RNC!
MIT License
21 stars 12 forks source link

Change implementation behavior (fix #1) #2

Closed gabbanaesteban closed 4 years ago

gabbanaesteban commented 6 years ago

What kind of change does this PR introduce? (check at least one)

Does this PR introduce a breaking change? (check one)

If yes, please describe the impact and migration path for existing applications:

Currently sdq.isCedula('40222075711') == sdq.isCedula('402a2@2-075/7_1 1') but in the case of having any non-digit character should return false.

You will have to replace all non-digit character before passing to the isCedula or IsRnc function.

The PR fulfills these requirements:

If adding a new feature, the PR's description includes:

Other information: