From 968e581d705bf7687cd7e00a15b5047242be2855 Mon Sep 17 00:00:00 2001 From: C-3PO Date: Sat, 23 Jun 2018 22:18:26 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20check=20for=20announce=20U?= =?UTF-8?q?RL?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ssn/verifySolidpkg.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ssn/verifySolidpkg.ts b/src/ssn/verifySolidpkg.ts index 9bd06bc..ee1e132 100644 --- a/src/ssn/verifySolidpkg.ts +++ b/src/ssn/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 !== 'http://Tracker22.fda5b1cf-eac6-402b-9ebf-17bc381314aa.automated.ssntracker.int:80/') { + 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) { throw new Error(`Expected announce URL but it was "${file.announce}".`); } if (file.title !== `${product}: ${from}to${to}`) {