From 80ecb1b7aaab47edeb355c3b74a763e940d88179 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Fri, 29 Apr 2022 19:51:50 +0200 Subject: xml: T4047: use full string match in the regex validator --- interface-definitions/service_monitoring_telegraf.xml.in | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'interface-definitions/service_monitoring_telegraf.xml.in') diff --git a/interface-definitions/service_monitoring_telegraf.xml.in b/interface-definitions/service_monitoring_telegraf.xml.in index 7db9de9f8..01bc16fc9 100644 --- a/interface-definitions/service_monitoring_telegraf.xml.in +++ b/interface-definitions/service_monitoring_telegraf.xml.in @@ -22,7 +22,7 @@ Authentication organization for InfluxDB v2 [REQUIRED] - ^[a-zA-Z][1-9a-zA-Z@_\-.]{2,50}$ + [a-zA-Z][1-9a-zA-Z@_\-.]{2,50} Organization name must be alphanumeric and can contain hyphens, underscores and at symbol. @@ -35,7 +35,7 @@ Authentication token - ^[a-zA-Z0-9-_]{86}==$ + [a-zA-Z0-9-_]{86}== Token must be 88 characters long and must contain only [a-zA-Z0-9-_] and '==' characters. @@ -79,7 +79,7 @@ Telegraf internal statistics - ^(all|hardware-utilization|logs|network|system|telegraf)$ + (all|hardware-utilization|logs|network|system|telegraf) @@ -93,7 +93,7 @@ Remote URL to InfluxDB v2 - ^(http:\/\/www\.|https:\/\/www\.|http:\/\/|https:\/\/)?[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}?(\/.*)?$ + (http:\/\/www\.|https:\/\/www\.|http:\/\/|https:\/\/)?[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}?(\/.*)? Incorrect URL format. -- cgit v1.2.3