3 namespace "urn:ietf:params:xml:ns:yang:test:string:types";
6 typedef DisplayString {
9 pattern "((\p{IsBasicLatin}{0,255}))";
15 pattern "((([0-9A-Fa-f]{2}){1}):)";
22 pattern "((([0-9A-Fa-f]{2}){1}):)";
29 pattern "((0|[1-9](([0-9]){0,4}))-(0|[1-9](([0-9]){0,2}))-(0|[1-9](([0-9]){0,2})),(0|[1-9](([0-9]){0,2})):(0|[1-9](([0-9]){0,2})):(0|[1-9](([0-9]){0,2})).(0|[1-9](([0-9]){0,2})),((\p{IsBasicLatin}{1})(0|[1-9](([0-9]){0,2})):(0|[1-9](([0-9]){0,2})))?)";
36 pattern "((\p{IsArrows}{5,255}))";
43 pattern "((\p{IsThai}{8,255}))";
47 typedef BraillePatterns {
50 pattern "((\p{IsBraillePatterns}{4,255}))";
54 typedef MathematicalOperators {
57 pattern "((\p{IsMathematicalOperators}{4,255}))";
62 description "Tests various combinations of regex expressions found in snmp yang models,
63 which are causing problems because of isBasicLatin expression.
65 According to https://unicode.org/charts/PDF/U0000.pdf basic latin characters are in range
66 0x00-0x7F ([\x00-\xFF] or [\u0000-\u00FF]). This means it should be safe to replace isBasicLatin
67 in regex expressions for characters in this range.";
87 leaf braille-patterns {
90 leaf mathematical-operators {
91 type MathematicalOperators;