Files
discourse/app/assets/javascripts
Joffrey JAFFEUX 92779a57d4 FIX: only validate length when value is set (#31053)
When using the following validation: `length:5,10`, if the field had no
value we would fail the validation which is incorrect. This commit
ensures we return early in this case and don't fail anymore. If you want
the same behavior you need to do: `required|length:5,10`
2025-01-29 20:23:52 +01:00
..
2021-08-04 22:04:58 +02:00