aboutsummaryrefslogtreecommitdiffstats
path: root/sdnr/wt/odlux
diff options
context:
space:
mode:
authorProjit Roy <projitr@aarnanetworks.com>2022-11-10 11:27:15 +0530
committerProjit Roy <projitr@aarnanetworks.com>2022-11-10 09:21:03 +0000
commite8d608b2c0246620f83c1d084ffeccb03d2e0fdc (patch)
tree4badfa74d77450a83228338e7a9d29974fd25a3d /sdnr/wt/odlux
parent9b0742cc4b23a75492b76f9bfd7615e054014aef (diff)
SDNR GUI always says 'Input is wrong.' for leaves with type 'inet:ip-address' Saving the data works just fine
Issue-ID: CCSDK-3800 Signed-off-by: Projit Roy <projitr@aarnanetworks.com> Change-Id: I5433f5a3bd4e8a41f023d0ad12223e98d9624100
Diffstat (limited to 'sdnr/wt/odlux')
-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 965935a5c..74e346e86 100644
--- a/sdnr/wt/odlux/apps/configurationApp/src/yang/yangParser.ts
+++ b/sdnr/wt/odlux/apps/configurationApp/src/yang/yangParser.ts
@@ -1049,7 +1049,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