Subject: [netmod] yang-types: bug in regex

From: Ladislav Lhotka <[email-masked]>
Date: Fri, 30 Apr 2010 13:17:18 +0200

Hi,

I found a bug in the pattern for "date-and-time" in ietf-yang-types:

--- draft-ietf-netmod-yang-types-09.txt.orig 2010-04-30
13:10:07.909168417 +0200
+++ draft-ietf-netmod-yang-types-09.txt	2010-04-30 13:11:36.473167337
+0200
@@ -592,7 +592,7 @@
    typedef date-and-time {
      type string {
        pattern '\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?'
-             + '(Z|[\+|-]\d{2}:\d{2})';
+             + '(Z|[\+\-]\d{2}:\d{2})';
      }
      description
       "The date-and-time type is a profile of the ISO 8601

Lada

-- 
Ladislav Lhotka, CESNET
PGP Key ID: E74E8C0C

---

From: Juergen Schoenwaelder <[email-masked]>
Date: Fri, 30 Apr 2010 21:55:35 +0200

> --- draft-ietf-netmod-yang-types-09.txt.orig 2010-04-30

Thanks. I hope to get this fixed before the ID gets cast into stone.

/js

-- 
Juergen Schoenwaelder           Jacobs University Bremen gGmbH
Phone: +49 421 200 3587         Campus Ring 1, 28759 Bremen, Germany
Fax:   +49 421 200 3103         <http://www.jacobs-university.de/>