Fix URL regexp validation
Change-Id: Id9c0cc0f47102fb9cd3365679f3aaf06afbf75b9
This commit is contained in:
parent
f6275b0622
commit
d870f3f05a
|
@ -127,7 +127,7 @@ attributes:
|
||||||
weight: 100
|
weight: 100
|
||||||
type: "text"
|
type: "text"
|
||||||
regex: &node_url_regex
|
regex: &node_url_regex
|
||||||
source: '^(http(s?):\/\/)?(((www\.)?+[a-zA-Z0-9\.\-\_]+(\.[a-zA-Z]{2,6}){0,})|(\b(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\b))(\/[a-zA-Z0-9\_\-\s\.\/\?\%\#\&\=]*)?$'
|
source: '^(http(s?):\/\/)?([a-zA-Z\d]+[a-zA-Z\d_\-.]*)(:[0-9]+)?(\/[a-zA-Z0-9_\-\s.\/\?%#&=]*)?$'
|
||||||
error: "Invalid URL"
|
error: "Invalid URL"
|
||||||
restrictions: ¬_remote
|
restrictions: ¬_remote
|
||||||
- condition: "settings:lma_collector.nagios_mode.value != 'remote'"
|
- condition: "settings:lma_collector.nagios_mode.value != 'remote'"
|
||||||
|
|
Loading…
Reference in New Issue