mirror of
https://github.com/jumpserver/lina.git
synced 2025-08-02 15:36:56 +00:00
perf: 优化ip正则
This commit is contained in:
parent
b0731d4fbd
commit
8d3a3587d1
@ -18,7 +18,7 @@ export const IpCheck = {
|
||||
required: true,
|
||||
validator: (rule, value, callback) => {
|
||||
value = value?.trim()
|
||||
if (/^[\w://.?]+$/.test(value)) {
|
||||
if (/^[\w://.?-]+$/.test(value)) {
|
||||
callback()
|
||||
} else {
|
||||
callback(new Error(i18n.t('common.FormatError')))
|
||||
|
Loading…
Reference in New Issue
Block a user