CN-361 fix: 修复搜索框bug、优化交互

This commit is contained in:
chenjinsong
2022-03-12 16:56:46 +08:00
parent abf53f5972
commit 01e5a42d44
16 changed files with 139 additions and 18 deletions

View File

@@ -410,3 +410,14 @@ export const iso36112 = {
SZ: 'eswatiniLow',
MN: 'mongoliaLow'
}
export const reg = {
// 不严格ipv4
notStrictIpv4: /(?:[0-9]{1,}\.){0,}[0-9]{1,}(\.)?/g,
// 不严格Ipv4带单引号
notStrictWithQuotIpv4: /'(?:[0-9]{1,}\.){0,}[0-9]{1,}(\.)?'/g,
// 不严格ipv6
notStrictIpv6: /(:{0,}[a-fA-F\d]{0,}){0,}:+([a-fA-F\d]{0,}:{0,}){0,}/g,
// 不严格Ipv6带单引号
notStrictWithQuotIpv6: /'(:{0,}[a-fA-F\d]{0,}){0,}:+([a-fA-F\d]{0,}:{0,}){0,}'/g
}