Closed zidekmat closed 6 years ago
Hi, the regular expression language used by YANG implicitly anchors all regular expressions at the head and tail, see https://www.w3.org/TR/2004/REC-xmlschema-2-20041028/#regexs. So the correct pattern is just "XXX"
.
Great, thanks for explanation :)
Hi, in current version 0.13.82 (tried also devel 0.13.38) I'm having trouble specifying valid pattern to match whole string. Let's suppose this module:
If I run
yanglint -VVV test-module.yang
, I get following:I also tried patterns like
"^XXX\$", "^XXX\\$", '^XXX$', '^XXX\$', '^XXX\\$'
but none seem to work. Do I specify the end of string in a bad way or is a bug?