aboutsummaryrefslogtreecommitdiffstats
path: root/sdnr/wt/odlux/apps/configurationApp/src
diff options
context:
space:
mode:
authorDan Timoney <dtimoney@att.com>2022-11-30 19:57:58 +0000
committerGerrit Code Review <gerrit@onap.org>2022-11-30 19:57:58 +0000
commitafb0ef315e3bae380f474cd8605c7c0afa8ba5a0 (patch)
tree6fd1fce0d116f45d999e76f34088ff3146a3977e /sdnr/wt/odlux/apps/configurationApp/src
parentbfb01e6b207c03648acb766c7ef1155c0ca68ae1 (diff)
parente8d608b2c0246620f83c1d084ffeccb03d2e0fdc (diff)
Merge "SDNR GUI always says 'Input is wrong.' for leaves with type 'inet:ip-address' Saving the data works just fine"
Diffstat (limited to 'sdnr/wt/odlux/apps/configurationApp/src')
-rw-r--r--sdnr/wt/odlux/apps/configurationApp/src/yang/yangParser.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/sdnr/wt/odlux/apps/configurationApp/src/yang/yangParser.ts b/sdnr/wt/odlux/apps/configurationApp/src/yang/yangParser.ts
index ee874c80a..e8e636f9b 100644
--- a/sdnr/wt/odlux/apps/configurationApp/src/yang/yangParser.ts
+++ b/sdnr/wt/odlux/apps/configurationApp/src/yang/yangParser.ts
@@ -1064,7 +1064,7 @@ export class YangParser {
};
const extractPattern = (): Expression<RegExp> | undefined => {
- const pattern = this.extractNodes(this.extractNodes(cur, "type")[0]!, "pattern").map(p => p.arg!).filter(p => !!p).map(p => `^${p}$`);
+ const pattern = this.extractNodes(this.extractNodes(cur, "type")[0]!, "pattern").map(p => p.arg!).filter(p => !!p).map(p => `^${p.replace(/(?:\\(.))/g, '$1')}$`);
return pattern && pattern.length == 1
? new RegExp(pattern[0])
: pattern && pattern.length > 1