Fix regexp constructor

This commit is contained in:
AkiraFukushima 2020-11-30 22:52:31 +09:00
parent 3516263140
commit e221706123
1 changed files with 1 additions and 1 deletions

View File

@ -1 +1 @@
export const domainFormat = new RegExp(/^[a-zA-Z0-9][a-zA-Z0-9-.]{0,61}[a-zA-Z0-9]\.[a-zA-Z]{2,}$/)
export const domainFormat = /^[a-zA-Z0-9][a-zA-Z0-9-.]{0,61}[a-zA-Z0-9]\.[a-zA-Z]{2,}$/