Merge pull request #445 from fruux/staabm-patch-1
Adjusted validation message to reflect the changed regex
This commit is contained in:
commit
875b9de6c8
1 changed files with 1 additions and 1 deletions
|
@ -309,7 +309,7 @@ class Form {
|
||||||
|
|
||||||
public function validateTokenid($sValue, \Formal\Form\Morphology $oMorpho, \Formal\Element $oElement) {
|
public function validateTokenid($sValue, \Formal\Form\Morphology $oMorpho, \Formal\Element $oElement) {
|
||||||
if(!preg_match("/^[a-z0-9\-_]+$/", $sValue)) {
|
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;
|
return TRUE;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue