Fix URL regexp validation

Change-Id: Id9c0cc0f47102fb9cd3365679f3aaf06afbf75b9
This commit is contained in:
Swann Croiset 2015-07-28 10:11:22 +02:00
parent f6275b0622
commit d870f3f05a
1 changed files with 1 additions and 1 deletions

View File

@ -127,7 +127,7 @@ attributes:
weight: 100
type: "text"
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"
restrictions: &not_remote
- condition: "settings:lma_collector.nagios_mode.value != 'remote'"