✔ Relax checking of announce URL to allow snxd.com
This commit is contained in:
parent
440611913d
commit
1183a87b53
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ export default function verifySolidpkg(file: ISolid, { product, from, to }: {pro
|
||||||
if (typeof file['creation date'] !== 'number') {
|
if (typeof file['creation date'] !== 'number') {
|
||||||
throw new Error(`Expected creation date to be a number but it was "${file['creation date']}".`);
|
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}".`);
|
throw new Error(`Expected announce URL but it was "${file.announce}".`);
|
||||||
}
|
}
|
||||||
if (file.title !== `${product}: ${from}to${to}`) {
|
if (file.title !== `${product}: ${from}to${to}`) {
|
||||||
|
|
Loading…
Reference in a new issue