Merge pull request #1 from sfabel/validator-domainFormat-fix
Update validator.ts
This commit is contained in:
commit
bfe9589b56
|
@ -1 +1 @@
|
|||
export const domainFormat = /^[a-zA-Z0-9][a-zA-Z0-9-.]{0,61}[a-zA-Z0-9]\.[a-zA-Z0-9]{2,}$/
|
||||
export const domainFormat = /^(((?!\-))(xn\-\-)?[a-z0-9\-_]{0,61}[a-z0-9]{1,1}\.)*(xn\-\-)?([a-z0-9\-]{1,61}|[a-z0-9\-]{1,30})\.[a-z]{2,}$/
|
||||
|
|
Loading…
Reference in New Issue