Compare commits
2
Commits
534dc6d2df
...
issue-1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cf693e6f08 | ||
|
|
4520447156 |
+4
-1
@@ -243,7 +243,10 @@ export function classifyAircraft(row) {
|
||||
|
||||
const matchesAny = (fields, list) => fields.some(f => {
|
||||
const value = normalizeName(f);
|
||||
return value && list.some(k => value.includes(normalizeName(k)));
|
||||
return value && list.some(k => {
|
||||
const kw = normalizeName(k);
|
||||
return kw && new RegExp('\\b' + kw.replace(/[.*+?^${}()|[\\]\\]/g, '\\$&') + '\\b', 'i').test(value);
|
||||
});
|
||||
});
|
||||
|
||||
const operators = [row.operator, row.operatorCallsign, row.owner];
|
||||
|
||||
Reference in New Issue
Block a user