Remove city database to reduce package size
This commit is contained in:
@ -43,8 +43,7 @@ class Domain extends Rule {
|
||||
*
|
||||
* @param mixed $value Value being checked.
|
||||
*/
|
||||
public function check($value) : bool { // phpcs:ignore
|
||||
|
||||
public function check($value) : bool { // phpcs:ignore
|
||||
return (bool) preg_match('/^(?!\-)(?:(?:[a-zA-Z\d][a-zA-Z\d\-]{0,61})?[a-zA-Z\d]\.){1,126}(?!\d+)[a-zA-Z\d]{1,63}$/', (string) $value);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user