Skip to content

Commit

Permalink
Allow 63 chars for TLD labels (#1493) (#1494)
Browse files Browse the repository at this point in the history
  • Loading branch information
ibolton336 committed Mar 1, 2023
1 parent 7d8f66d commit 914497c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/common/duck/utils.ts
Expand Up @@ -3,7 +3,7 @@ import { alertErrorModal } from './slice';

const DNS1123Validator = /^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$/;
const URLValidator =
/(http(s)?:\/\/.)(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/;
/(http(s)?:\/\/.)(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/;
const RouteHostValidator =
/[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/;

Expand Down

0 comments on commit 914497c

Please sign in to comment.