Skip to content

Commit

Permalink
allow trailing slash to IPR link (#1839)
Browse files Browse the repository at this point in the history
  • Loading branch information
deniak committed Jun 14, 2024
1 parent b4c122a commit 80726c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ Specberus.prototype.getDelivererGroups = async function () {
const REGEX_TAG_DISCLOSURE =
/https?:\/\/www.w3.org\/2001\/tag\/disclosures/;
const REGEX_DELIVERER_IPR_URL =
/^https:\/\/www\.w3\.org\/groups\/([^/]+)\/([^/]+)\/ipr(#.*)?$/i;
/^https:\/\/www\.w3\.org\/groups\/([^/]+)\/([^/]+)\/ipr\/?(#.*)?$/i;
const TagID = TAG.id;

const sotd = this.getSotDSection();
Expand Down Expand Up @@ -628,7 +628,7 @@ Specberus.prototype.getDelivererIDs = async function () {
const REGEX_TAG_DISCLOSURE =
/https?:\/\/www.w3.org\/2001\/tag\/disclosures/;
const REGEX_DELIVERER_IPR_URL =
/^https:\/\/www\.w3\.org\/groups\/([^/]+)\/([^/]+)\/ipr(#.*)?$/i;
/^https:\/\/www\.w3\.org\/groups\/([^/]+)\/([^/]+)\/ipr\/?(#.*)?$/i;
const TagID = TAG.id;
const ids = this.getDataDelivererIDs() || [];
const sotd = this.getSotDSection();
Expand Down

0 comments on commit 80726c8

Please sign in to comment.