On 2016-09-05 12:34, Martin Bjorklund wrote:
> RFC Errata System <[email protected]> wrote:
>> The following errata report has been submitted for RFC7317,
>> "A YANG Data Model for System Management".
>>
>> --------------------------------------
>> You may review the report below and at:
>> http://www.rfc-editor.org/errata_search.php?rfc=7317&eid=4795
>>
>> --------------------------------------
>> Type: Editorial
>> Reported by: Kaja Mohideen <[email protected]>
>>
>> Section: 5
>>
>> Original Text
>> -------------
>> typedef crypt-hash {
>>        type string {
>>          pattern
>>            'RFCORIGINAL_TEXT$.*'
>>          + '|$[a-zA-Z0-9./]{1,8}$[a-zA-Z0-9./]{22}'
>>          + '|$(rounds=\d+$)?[a-zA-Z0-9./]{1,16}$[a-zA-Z0-9./]{43}'
>>          + '|$(rounds=\d+$)?[a-zA-Z0-9./]{1,16}$[a-zA-Z0-9./]{86}';
>>        }
>>
>> Corrected Text
>> --------------
>> typedef crypt-hash {
>>   type string {
>>     pattern
>>         '$0$.*'
>>       + '|$1$[a-zA-Z0-9./]{1,8}$[a-zA-Z0-9./]{22}'
>>       + '|$5$(rounds=\d+$)?[a-zA-Z0-9./]{1,16}$[a-zA-Z0-9./]{43}'
>>       + '|$6$(rounds=\d+$)?[a-zA-Z0-9./]{1,16}$[a-zA-Z0-9./]{86}';
>>   }
>>   
>>
>> Notes
>> -----
>> Character $ has special meaning in regular expression.
> 
> No, "$" is not special in the regular expression dialect used in YANG
> (XML Schema).

+1. And in fact the suggested change (lost in the above text, but
present in the html version), to use '\$' instead of '$', results in
invalid expressions according the XML Schema spec.

--Per

> /martin
> 
> _______________________________________________
> netmod mailing list
> [email protected]
> https://www.ietf.org/mailman/listinfo/netmod
> 

_______________________________________________
netmod mailing list
[email protected]
https://www.ietf.org/mailman/listinfo/netmod

Reply via email to