- From: Frederick Hirsch via cvs-syncmail <cvsmail@w3.org>
- Date: Wed, 30 Dec 2009 21:37:54 +0000
- To: public-dap-commits@w3.org
Update of /sources/public/2009/dap/ReSpec.js/js In directory hutz:/tmp/cvs-serv10813 Modified Files: respec.js Log Message: Add support for NOT REQUIRED Index: respec.js =================================================================== RCS file: /sources/public/2009/dap/ReSpec.js/js/respec.js,v retrieving revision 1.73 retrieving revision 1.74 diff -u -d -r1.73 -r1.74 --- respec.js 30 Dec 2009 17:03:10 -0000 1.73 +++ respec.js 30 Dec 2009 21:37:52 -0000 1.74 @@ -638,7 +638,7 @@ for (var i = 0; i < txts.length; i++) { var txt = txts[i]; var rx = new RegExp("(\\bMUST(?:\\s+NOT)?\\b|\\bSHOULD(?:\\s+NOT)?\\b|\\bSHALL(?:\\s+NOT)?\\b|" + - "\\bMAY\\b|\\bREQUIRED\\b|\\b(?:NOT\\s+)?RECOMMENDED\\b|\\bOPTIONAL\\b|" + + "\\bMAY\\b|\\b(?:NOT\\s+)?REQUIRED\\b|\\b(?:NOT\\s+)?RECOMMENDED\\b|\\bOPTIONAL\\b|" + "(?:\\[\\[(?:!)?[A-Za-z0-9-]+\\]\\])|" + abbrRx + ")"); var subtxt = txt.data.split(rx); @@ -650,7 +650,7 @@ sn.text(t, df); if (matched) { // RFC 2129 - if (/MUST(?:\s+NOT)?|SHOULD(?:\s+NOT)?|SHALL(?:\s+NOT)?|MAY|REQUIRED|(?:NOT\s+)?RECOMMENDED|OPTIONAL/.test(matched)) { + if (/MUST(?:\s+NOT)?|SHOULD(?:\s+NOT)?|SHALL(?:\s+NOT)?|MAY|(?:NOT\s+)?REQUIRED|(?:NOT\s+)?RECOMMENDED|OPTIONAL/.test(matched)) { matched = matched.toLowerCase(); sn.element("em", { "class": "rfc2119", title: matched }, df, matched); }
Received on Wednesday, 30 December 2009 21:37:56 UTC