mirror of
https://github.com/Respect/Validation.git
synced 2026-03-17 23:59:51 +01:00
I created those validators to make it easy to parse parameters or console command inputs that were answers to questions one might ask. One of the biggest problems is that it depends on the machine's locale, which can be a bit troublesome, rather than receiving a locale in the constructor. That doesn’t allow for a lot of flexibility when someone has a multi-lingual application. Additionally, these validators rely on the regex from `nl_langinfo()`, which is very permissive, resulting in false positives. I have a working version of a console command that retrieves data from the Unicode Common Locale Data Repository (CLDR) and updates a list of `yesstr` and `nostr` strings from the main XML file of each language. However, I came to realise that the whole thing is not worth it. The validators Yes and No can be replaced by using rules like `Regex` and `In`. They won’t have the ease of multilingual support, but I don’t think those validators are used a lot. So, I decided I would just remove them, and if users really ask for it in the next major version, I’d be happy to revive my branch. |
||
|---|---|---|
| .. | ||
| validators | ||
| comparable-values.md | ||
| comparing-empty-values.md | ||
| concrete-api.md | ||
| custom-validators.md | ||
| feature-guide.md | ||
| handling-exceptions.md | ||
| index.md | ||
| installation.md | ||
| license.md | ||
| list-of-validators-by-category.md | ||
| message-placeholder-conversion.md | ||
| message-translation.md | ||
| requirements.txt | ||