W3C home > Mailing lists > Public > www-html-editor@w3.org > April to June 2012

Ineffective pattern for CURIE

From: Brian M. Ames <brian.ames@ameshymn.org>
Date: Wed, 09 May 2012 23:25:27 -0400
Message-ID: <4FAB3527.7010209@ameshymn.org>
To: www-html-editor@w3.org
The pattern given for CURIE in 
http://www.w3.org/TR/2010/NOTE-curie-20101216 is ineffective for 
validation since it matches anything but an empty string. That is to say 
(([\i-[:]][\c-[:]]*)?:)?.+ is no different than .+ alone. An alternative 
would be (([\i-[:]][\c-[:]]*)?:).+|([^:])+ which would require any CURIE 
without a prefix but containing a colon to be prefixed with a colon 
1 more time
would all be valid but
would not be.

Best regards,

Brian M. Ames
Received on Thursday, 10 May 2012 15:20:57 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:08:58 UTC