sdq icon indicating copy to clipboard operation
sdq copied to clipboard

If contain any alphabet letter in between it still returns true

Open miguel550 opened this issue 8 years ago • 2 comments

import sdq from 'sdq'

sdq.isCedula('40222075711') == sdq.isCedula('402aaaaaaaaaaaa22075711')

In the case of having alphabet letter it should return false.

miguel550 avatar Nov 21 '17 03:11 miguel550

Good catch, the implementation removes everything except the digits. It should definitively behave differently. Thanks for reporting this.

rmariuzzo avatar Nov 21 '17 04:11 rmariuzzo

Fixed in #2

gabbanaesteban avatar Mar 12 '18 15:03 gabbanaesteban