summaryrefslogtreecommitdiff
path: root/interface-definitions/service_monitoring_telegraf.xml.in
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-04-29 19:51:50 +0200
committerChristian Poessinger <christian@poessinger.com>2022-04-29 19:51:50 +0200
commit80ecb1b7aaab47edeb355c3b74a763e940d88179 (patch)
treecb0951a838ccfafe7a154cf566461ece0280f0a9 /interface-definitions/service_monitoring_telegraf.xml.in
parent52155b9086fa18083efb601bcc9ba8807f147686 (diff)
downloadvyos-1x-80ecb1b7aaab47edeb355c3b74a763e940d88179.tar.gz
vyos-1x-80ecb1b7aaab47edeb355c3b74a763e940d88179.zip
xml: T4047: use full string match in the regex validator
Diffstat (limited to 'interface-definitions/service_monitoring_telegraf.xml.in')
-rw-r--r--interface-definitions/service_monitoring_telegraf.xml.in8
1 files changed, 4 insertions, 4 deletions
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 @@
<properties>
<help>Authentication organization for InfluxDB v2 [REQUIRED]</help>
<constraint>
- <regex>^[a-zA-Z][1-9a-zA-Z@_\-.]{2,50}$</regex>
+ <regex>[a-zA-Z][1-9a-zA-Z@_\-.]{2,50}</regex>
</constraint>
<constraintErrorMessage>Organization name must be alphanumeric and can contain hyphens, underscores and at symbol.</constraintErrorMessage>
</properties>
@@ -35,7 +35,7 @@
<description>Authentication token</description>
</valueHelp>
<constraint>
- <regex>^[a-zA-Z0-9-_]{86}==$</regex>
+ <regex>[a-zA-Z0-9-_]{86}==</regex>
</constraint>
<constraintErrorMessage>Token must be 88 characters long and must contain only [a-zA-Z0-9-_] and '==' characters.</constraintErrorMessage>
</properties>
@@ -79,7 +79,7 @@
<description>Telegraf internal statistics</description>
</valueHelp>
<constraint>
- <regex>^(all|hardware-utilization|logs|network|system|telegraf)$</regex>
+ <regex>(all|hardware-utilization|logs|network|system|telegraf)</regex>
</constraint>
<multi/>
</properties>
@@ -93,7 +93,7 @@
<description>Remote URL to InfluxDB v2</description>
</valueHelp>
<constraint>
- <regex>^(http:\/\/www\.|https:\/\/www\.|http:\/\/|https:\/\/)?[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}?(\/.*)?$</regex>
+ <regex>(http:\/\/www\.|https:\/\/www\.|http:\/\/|https:\/\/)?[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}?(\/.*)?</regex>
</constraint>
<constraintErrorMessage>Incorrect URL format.</constraintErrorMessage>
</properties>