MDL-71126 Quiz: Manual grading page size preference can get stuck at 0
Including in this change: - New positiveint regex rule to check if the value is a positive integer
This commit is contained in:
@@ -40,7 +40,8 @@ class HTML_QuickForm_Rule_Regex extends HTML_QuickForm_Rule
|
||||
'alphanumeric' => '/^[a-zA-Z0-9]+$/',
|
||||
'numeric' => '/(^-?\d\d*\.\d*$)|(^-?\d\d*$)|(^-?\.\d\d*$)/',
|
||||
'nopunctuation' => '/^[^().\/\*\^\?#!@$%+=,\"\'><~\[\]{}]+$/',
|
||||
'nonzero' => '/^-?[1-9][0-9]*/'
|
||||
'nonzero' => '/^-?[1-9][0-9]*/',
|
||||
'positiveint' => '/^[1-9]\d*$/'
|
||||
);
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user