Code Review
/
yangtools.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
history
|
raw
|
HEAD
Bug 5396: Regex processing of yang models is broken.
[yangtools.git]
/
yang
/
yang-parser-impl
/
src
/
test
/
resources
/
bugs
/
bug5396
/
foo.yang
1
module foo {
2
yang-version 1;
3
namespace "foo";
4
prefix "foo";
5
6
container root {
7
leaf my-leaf2 {
8
type my-type;
9
}
10
}
11
12
typedef my-type {
13
type union {
14
type string {
15
pattern "dp[0-9]+o[0-9]+(d[0-9]+)?";
16
}
17
type string {
18
pattern "dp[0-9]+s[0-9]+(f[0-9]+)?(d[0-9]+)?";
19
}
20
type string {
21
pattern "dp[0-9]+(P[0-9]+)?p[0-9]{1,3}s[0-9]{1,3}(f[0-9]+)?(d[0-9]+)?";
22
}
23
type string {
24
pattern "dp[0-9]+p[0-9]+p[0-9]+";
25
}
26
}
27
}
28
}