Change regex for website field
This commit is contained in:
parent
edfae72916
commit
a956829ae8
1 changed files with 1 additions and 1 deletions
|
@ -70,7 +70,7 @@ class Edit extends Profile
|
|||
}
|
||||
|
||||
if ($this->rules->editWebsite) {
|
||||
$ruleWebsite = 'exist|string:trim,empty|max:100|regex:%^(?:https?:)?//[^\x00-\x1F\s]+$%iu';
|
||||
$ruleWebsite = 'exist|string:trim,empty|max:100|regex:%^https?://[^\x00-\x1F\s]+$%uD';
|
||||
} else {
|
||||
$ruleWebsite = 'absent';
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue