mirror of https://github.com/apache/cloudstack.git
fix nameserver ui validation
This commit is contained in:
parent
e997f4c227
commit
df5c3e6c68
|
|
@ -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',
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Reference in New Issue