From 3cacaf94f05fe92d5eda1574a07e5fd49881d97d Mon Sep 17 00:00:00 2001 From: zsdc Date: Fri, 25 Oct 2019 23:28:47 +0300 Subject: [XML templates] T1772: Add escaping of `\` symbol in `` --- scripts/build-command-templates | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build-command-templates b/scripts/build-command-templates index ba80eadb2..4fcdb8ade 100755 --- a/scripts/build-command-templates +++ b/scripts/build-command-templates @@ -125,7 +125,7 @@ def get_properties(p): regexes = [] regex_elements = vce.findall("regex") if regex_elements is not None: - regexes = list(map(lambda e: e.text.strip(), regex_elements)) + regexes = list(map(lambda e: e.text.strip().replace('\\','\\\\'), regex_elements)) if "" in regexes: print("Warning: empty regex, node will be accepting any value") -- cgit v1.2.3