From 1183a87b536db7377f1ecef9915a52314761da07 Mon Sep 17 00:00:00 2001 From: C-3PO Date: Mon, 9 Jul 2018 15:51:03 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=94=20Relax=20checking=20of=20announce=20?= =?UTF-8?q?URL=20to=20allow=20snxd.com?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ssn/verify/verifySolidpkg.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ssn/verify/verifySolidpkg.ts b/src/ssn/verify/verifySolidpkg.ts index 8968da0..6065e0f 100644 --- a/src/ssn/verify/verifySolidpkg.ts +++ b/src/ssn/verify/verifySolidpkg.ts @@ -5,7 +5,7 @@ export default function verifySolidpkg(file: ISolid, { product, from, to }: {pro if (typeof file['creation date'] !== 'number') { throw new Error(`Expected creation date to be a number but it was "${file['creation date']}".`); } - if (file.announce.match(/^http:\/\/Tracker22\.[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}\.automated\.(tel\.swtor\.com|ssntracker\.int):80\/$/) === null) { + if (file.announce.match(/^http:\/\/Tracker22\.[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}\.automated\.(tel\.swtor\.com:80|ssntracker\.int:80|snxd\.com:2500)\/$/) === null) { throw new Error(`Expected announce URL but it was "${file.announce}".`); } if (file.title !== `${product}: ${from}to${to}`) {