fix nameserver ui validation

This commit is contained in:
Manoj Kumar 2026-04-27 17:10:42 +05:30
parent e997f4c227
commit df5c3e6c68
No known key found for this signature in database
GPG Key ID: E952B7234D2C6F88
2 changed files with 2 additions and 2 deletions

View File

@ -156,7 +156,7 @@
import { getAPI, postAPI } from '@/api'
import TooltipLabel from '@/components/widgets/TooltipLabel'
const FQDN_REGEX = /^(?=.{1,253}$)(?!-)[A-Za-z0-9-]{1,63}(?<!-)(\.[A-Za-z]{2,})+$/
const FQDN_REGEX = /^(?=.{1,253}$)(?:(?!-)[A-Za-z0-9-]{1,63}(?<!-)\.)+[A-Za-z]{2,63}$/
export default {
name: 'AddDnsServer',

View File

@ -118,7 +118,7 @@
import { postAPI } from '@/api'
import TooltipLabel from '@/components/widgets/TooltipLabel'
const FQDN_REGEX = /^(?=.{1,253}$)(?!-)[A-Za-z0-9-]{1,63}(?<!-)(\.[A-Za-z]{2,})+$/
const FQDN_REGEX = /^(?=.{1,253}$)(?:(?!-)[A-Za-z0-9-]{1,63}(?<!-)\.)+[A-Za-z]{2,63}$/
export default {
name: 'UpdateDnsServer',