-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow https URLs for in PP URL checks. #222
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -72,12 +72,13 @@ exports.check = function (sr, done) { | |
, text = sr.norm($a.text()) | ||
, ids | ||
; | ||
if (href === "http://www.w3.org/Consortium/Patent-Policy-20040205/" && | ||
if ((href === "http://www.w3.org/Consortium/Patent-Policy-20040205/" || | ||
href === "https://www.w3.org/Consortium/Patent-Policy-20040205/") && | ||
text === "5 February 2004 W3C Patent Policy") { | ||
foundFeb5 = true; | ||
return; | ||
} | ||
if (/^http:\/\/www\.w3\.org\/2004\/01\/pp-impl\/\d+\/status(#.*)?$/.test(href) && | ||
if (/^http[s]*:\/\/www\.w3\.org\/2004\/01\/pp-impl\/\d+\/status(#.*)?$/.test(href) && | ||
text === "public list of any patent disclosures") { | ||
ids = DELIVERER_ID_REGEX.exec(href); | ||
if (ids && 2 === ids.length) { | ||
|
@@ -88,22 +89,26 @@ exports.check = function (sr, done) { | |
return; | ||
} | ||
} | ||
if (href === "http://www.w3.org/Consortium/Patent-Policy-20040205/#def-essential" && | ||
if ((href === "http://www.w3.org/Consortium/Patent-Policy-20040205/#def-essential" || | ||
href === "https://www.w3.org/Consortium/Patent-Policy-20040205/#def-essential") && | ||
text === "Essential Claim(s)") { | ||
foundEssentials = true; | ||
return; | ||
} | ||
if (href === "http://www.w3.org/Consortium/Patent-Policy-20040205/#sec-Disclosure" && | ||
if ((href === "http://www.w3.org/Consortium/Patent-Policy-20040205/#sec-Disclosure" || | ||
href === "http://www.w3.org/Consortium/Patent-Policy-20040205/#sec-Disclosure") && | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. missing |
||
text === "section 6 of the W3C Patent Policy") { | ||
foundSection6 = true; | ||
return; | ||
} | ||
if (href === "http://www.w3.org/TR/2002/NOTE-patent-practice-20020124" && | ||
if ((href === "http://www.w3.org/TR/2002/NOTE-patent-practice-20020124" || | ||
href === "http://www.w3.org/TR/2002/NOTE-patent-practice-20020124") && | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. missing |
||
text === "24 January 2002 CPP") { | ||
foundJan24 = true; | ||
return; | ||
} | ||
if (href === "http://www.w3.org/2004/02/05-pp-transition" && | ||
if ((href === "http://www.w3.org/2004/02/05-pp-transition" || | ||
href === "http://www.w3.org/2004/02/05-pp-transition") && | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. missing |
||
text === "W3C Patent Policy Transition Procedure") { | ||
foundPPTransition = true; | ||
return; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/^https?:\/\/...
is more accurate, and simpler.(Nevermind, sorry I didn't see this earlier… :¬)