Merge pull request #445 from fruux/staabm-patch-1

Adjusted validation message to reflect the changed regex
This commit is contained in:
Evert Pot 2016-02-06 22:00:00 -05:00
commit 875b9de6c8

View file

@ -309,7 +309,7 @@ class Form {
public function validateTokenid($sValue, \Formal\Form\Morphology $oMorpho, \Formal\Element $oElement) {
if(!preg_match("/^[a-z0-9\-_]+$/", $sValue)) {
return "<strong>" . $oElement->option("label") . "</strong> is not valid. Allowed characters are digits, lowercase letters and the dash symbol '-'.";
return "<strong>" . $oElement->option("label") . "</strong> is not valid. Allowed characters are digits, lowercase letters, the dash and underscore symbol.";
}
return TRUE;