Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
CRequiredValidator: Make trim an option #2343
I think that isEmpty should allow for the option of setting the trim to true or false on CRequiredValidator.
Currently (line 61):
Would like (line 61):
Would have to define:
/** * @var boolean whether it trims the value in comparing the string * When this is false, the attribute value can contain a non-trimmed value like a space * Defaults to true, meaning the value will be trimmed */ public $trim = true;