validatorjs / validator.js

String validation
MIT License
23.12k stars 2.31k forks source link

Allow validating string according to GSM-7 encoding #1426

Open TimDaub opened 4 years ago

TimDaub commented 4 years ago

See: https://en.wikipedia.org/wiki/GSM_03.38#GSM_7-bit_default_alphabet_and_extension_table_of_3GPP_TS_23.038_.2F_GSM_03.38

Are you interested in supporting an isGSM7 validation function? If so, I could help to build it.

TimDaub commented 4 years ago

I've built a quick proof-of-concept over here: https://github.com/TimDaub/isgsm7

TimDaub commented 4 years ago

Major Tom to ground control...

profnandaa commented 4 years ago

Thank for the suggestion. Could you give some example use cases for this feature?

TimDaub commented 4 years ago

See: https://github.com/TimDaub/http-sms-gateway/blob/master/src/api/v1.js#L25-L29

pano9000 commented 2 months ago

@TimDaub I think it could be a valid addition, if you are still interested in this, feel free to open a PR