From 53f30e27a4740a72c088887259db6fce98d523e5 Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Sat, 6 Feb 2016 12:54:40 +0100 Subject: [PATCH] Adjusted validation message to reflect the changed regex Refs #320 --- Core/Frameworks/Formal/Form.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/Frameworks/Formal/Form.php b/Core/Frameworks/Formal/Form.php index ac67447..c60bf99 100644 --- a/Core/Frameworks/Formal/Form.php +++ b/Core/Frameworks/Formal/Form.php @@ -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 "" . $oElement->option("label") . " is not valid. Allowed characters are digits, lowercase letters and the dash symbol '-'."; + return "" . $oElement->option("label") . " is not valid. Allowed characters are digits, lowercase letters, the dash and underscore symbol."; } return TRUE;