jqBootstrapValidation
jqBootstrapValidation copied to clipboard
Callback validation returns OK if text is empty
You can reproduce it with your callback example.
/a.*z/.test("") returns false, so the regex is valid. But OK is returned, in your example, if the text input is left empty.