Commit 4c53a6b
committed
Fix fragment-offset-range pattern escaping in single-quoted strings
The pattern and posix-pattern for fragment-offset-range use '\\.'
(double backslash) in single-quoted YANG strings. Since single-quoted
strings have no escape processing (RFC 7950 Section 6.1.3), '\\.'
stores as literal backslash-backslash-dot, which in regex means
"literal backslash followed by any character" — not the intended
"literal dot".
All other patterns in the OpenConfig models correctly use '\.' (single
backslash) for literal dot matching in single-quoted strings (e.g.
area-address in openconfig-isis-types.yang).1 parent f87db50 commit 4c53a6b
2 files changed
Lines changed: 21 additions & 2 deletions
File tree
- regexp-tests
- release/models/acl
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
29 | 48 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
383 | 383 | | |
384 | 384 | | |
385 | 385 | | |
386 | | - | |
| 386 | + | |
387 | 387 | | |
388 | 388 | | |
389 | 389 | | |
390 | 390 | | |
391 | | - | |
| 391 | + | |
392 | 392 | | |
393 | 393 | | |
394 | 394 | | |
| |||
0 commit comments