I wrote this JavaScript snippet about two years ago to validate a USPS tracking ID. It is not exhaustive as to whether or not the ID is actually is a known USPS ID but it makes sure the minimum number of digits are present and the check-digit is correct.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I wrote this JavaScript snippet about two years ago to validate a USPS tracking ID. It is not exhaustive as to whether or not the ID is actually is a known USPS ID but it makes sure the minimum number of digits are present and the check-digit is correct.