🛠Lightweight utilities for string & array manipulation, image handling, safe JSON encoding/decoding, validation, slug or strong password generating etc.
1.98k
stars
147
forks
source link
Impossible pattern validation for enums #273
Closed
interitty-user closed 2 years ago
Because of the https://github.com/nette/utils/blob/f483116e27d5ee16d03e788002f97a248c7d3a02/src/Utils/Validators.php#L133 there is no way to define the simple
pattern:(value1|value2)
.