zendframework / zend-validator

Validator component from Zend Framework
BSD 3-Clause "New" or "Revised" License
181 stars 136 forks source link

Missing support for emojis as valid punycode #229

Open caquillo07 opened 6 years ago

caquillo07 commented 6 years ago

Hi all,

I ran into an issue when trying to validate hostnames to which the punycode converts to an emoji. I noticed there is no regular expression to match this on any of the IDNs. Were emojis left out for a reason? or am I missing something, perhaps there is a way to add my own custom IDNs to the list? I did not any feature which allows me to do that either.

The hostname I'm trying to validate is xn--ht8h.somename.com

If this has been asked before, my apologies, I have searched all over the place for the last day or two. If someone could point in the direction to fix this, I would really appreciate it.

Thank you.

weierophinney commented 4 years ago

This repository has been closed and moved to laminas/laminas-validator; a new issue has been opened at https://github.com/laminas/laminas-validator/issues/6.