Alexander Makarov
Alexander Makarov
As @cebe said, that's a special case and there's a way to make it work by adjusting regular expression. Not going to change it.
@Radon8472 correct.
Adding it as an option disabled by default is fine.
What's the use-case?
1. It should work w/ `UploadedFileInterface` from PSR-7. 2. May support multiple uploads for the same field.
Since there's no PSR-7 dependency in this package, it might be worth having it elsewhere.
Need option to support wildcards. Could be done with filter_var: ```php if ($allowWildcard) { $host = str_replace('*', 'wildcard', $host); } if (!filter_var($host, FILTER_VALIDATE_DOMAIN, FILTER_FLAG_HOSTNAME)) { // invalid } ```
@cebe what do you want to do with these errors? Would you somehow handle it differently from the rest of validation errors? Would you hide these from end users?
I'd like to collect real feedback first.
I see two potential outcomes: 1. We won't translate such messages always returning these in English. That's less work for translators but is questionable by itself. What if that's API...