mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-06 18:21:39 +09:00
Correct the URL regex
This commit is contained in:
parent
0c31234e09
commit
34c46a08c6
1 changed files with 1 additions and 1 deletions
|
|
@ -88,7 +88,7 @@ class Validator
|
||||||
$this->addRule(array(
|
$this->addRule(array(
|
||||||
'email' => '/^[\w-]+((?:\.|\+|\~)[\w-]+)*@[\w-]+(\.[\w-]+)+$/',
|
'email' => '/^[\w-]+((?:\.|\+|\~)[\w-]+)*@[\w-]+(\.[\w-]+)+$/',
|
||||||
'userid' => '/^[a-z]+[\w-]*[a-z0-9_]+$/i',
|
'userid' => '/^[a-z]+[\w-]*[a-z0-9_]+$/i',
|
||||||
'url' => '/^https?:\/\/[^\\\\/]+!',
|
'url' => '/^https?:\/\//i',
|
||||||
'alpha' => '/^[a-z]*$/i',
|
'alpha' => '/^[a-z]*$/i',
|
||||||
'alpha_number' => '/^[a-z][a-z0-9_]*$/i',
|
'alpha_number' => '/^[a-z][a-z0-9_]*$/i',
|
||||||
'number' => '/^(?:[1-9]\\d*|0)$/',
|
'number' => '/^(?:[1-9]\\d*|0)$/',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue