Commit ef97fe0
committed
fix: use loose regex for IP and mask input
1. Add loose edit-time regex (ipEditRegExp, maskEditRegExp) that
only allows digits and dots
2. Replace strict validators with loose ones on IP address,
subnet mask, and gateway input fields
3. Allow users to type incomplete IP/mask values during editing
without being blocked by validation
Log: Use permissive input regex for IPv4 address and subnet mask fields
fix: 使用宽松正则校验IP和子网掩码输入
1. 新增编辑时宽松正则(ipEditRegExp, maskEditRegExp),仅允许数字和点
2. 将IP地址、子网掩码和网关输入框的校验器替换为宽松正则
3. 允许用户在编辑过程中输入不完整的IP/掩码值,不被严格校验阻断
Log: IPv4地址和子网掩码输入框使用宽松正则校验
PMS: BUG-3612111 parent 2233bfa commit ef97fe0
2 files changed
Lines changed: 8 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
15 | 17 | | |
16 | 18 | | |
17 | 19 | | |
| 20 | + | |
| 21 | + | |
18 | 22 | | |
19 | 23 | | |
20 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
340 | 340 | | |
341 | 341 | | |
342 | 342 | | |
343 | | - | |
| 343 | + | |
344 | 344 | | |
345 | 345 | | |
346 | 346 | | |
| |||
372 | 372 | | |
373 | 373 | | |
374 | 374 | | |
375 | | - | |
| 375 | + | |
376 | 376 | | |
377 | 377 | | |
378 | 378 | | |
| |||
404 | 404 | | |
405 | 405 | | |
406 | 406 | | |
407 | | - | |
| 407 | + | |
408 | 408 | | |
409 | 409 | | |
410 | 410 | | |
| |||
0 commit comments