Fix military aircraft classification regex to reduce false positives (issue-1)
This commit is contained in:
+1
-1
@@ -220,7 +220,7 @@ async function syncMilitaryIcao() {
|
||||
try {
|
||||
const page = await fetch(ADSB_URL + ':8080').then(resp => resp.text());
|
||||
const db = /databaseFolder = "(db-.+?)"/.exec(page);
|
||||
const res = await fetch(ADSB_URL + `${db[1]}/ranges.js`);
|
||||
const res = await fetch(ADSB_URL + `:8080/${db[1]}/ranges.js`);
|
||||
if (!res.ok) throw new Error(`HTTP ${res.status}`);
|
||||
const { military } = await res.json();
|
||||
db.exec('DELETE FROM military_ranges');
|
||||
|
||||
Reference in New Issue
Block a user