Knockout-Contrib / Knockout-Validation

A validation library for Knockout JS
1.02k stars 379 forks source link

Auto trim before validate #583

Open Eisenspalter opened 9 years ago

Eisenspalter commented 9 years ago

Is there a trim option before validate? Or what is the best practice to avoid errors with unnecessary blanks?

crissdev commented 9 years ago

@Eisenspalter The required rule does this but if you want to remove whitespace before any validation rule, then I would suggest implementing a knockout extender. Check out this SO question too.