sdq
sdq copied to clipboard
If contain any alphabet letter in between it still returns true
import sdq from 'sdq'
sdq.isCedula('40222075711') == sdq.isCedula('402aaaaaaaaaaaa22075711')
In the case of having alphabet letter it should return false.
Good catch, the implementation removes everything except the digits. It should definitively behave differently. Thanks for reporting this.
Fixed in #2