mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
parent
a7a9c7c848
commit
54843a7865
4 changed files with 11 additions and 5 deletions
|
|
@ -2231,6 +2231,11 @@ function getPasswordInputPattern()
|
|||
return [[^[\w\$\\!\/\(\)= \?\^\*@_\-\u0000-\u0019\u0021-\u00ff]{5,31}$]]
|
||||
end
|
||||
|
||||
-- NOTE: keep in sync with validateLicense()
|
||||
function getLicensePattern()
|
||||
return [[^[a-zA-Z0-9\+/=]+$]]
|
||||
end
|
||||
|
||||
function getIPv4Pattern()
|
||||
return "^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])$"
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue