modified: make_post_sell/views/shop.py
This commit is contained in:
parent
d72b951a54
commit
0d555117d3
1 changed files with 2 additions and 1 deletions
|
|
@ -14,6 +14,7 @@ from . import (
|
|||
from ..models.shop import (
|
||||
Shop,
|
||||
get_shop_by_id,
|
||||
get_shop_by_domain_name,
|
||||
is_shop_name_valid,
|
||||
is_shop_name_available,
|
||||
)
|
||||
|
|
@ -40,7 +41,7 @@ from ..lib.phone_numbers import is_phone_number_valid
|
|||
from pyramid.httpexceptions import HTTPFound
|
||||
|
||||
# feel free to come up with a better plan, GPT-4 made this regex.
|
||||
DOMAIN_NAME_REGEX = re.compile(r'^(?=.{1,253}$)(?:(?!-)[A-Za-z0-9-]{1,63}(?<!-)\.)+[A-Za-z]{2,8}$')
|
||||
DOMAIN_NAME_REGEX = re.compile(r'^(?=.{1,253}$)(?:(?!-)[A-Za-z0-9-]{1,63}(?<!-)\.)+[A-Za-z]{2,9}$')
|
||||
|
||||
|
||||
def checkbox_to_bool(checkbox):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue