mirror of
https://github.com/Pax1601/DCSOlympus.git
synced 2025-10-29 16:56:34 +00:00
Fixed regex undefined
This commit is contained in:
@@ -34,7 +34,7 @@ export class UnitDataFileExport extends UnitDataFile {
|
||||
const data:any = {};
|
||||
const categories:string[] = [];
|
||||
const coalitions:string[] = [];
|
||||
const unitCanBeExported = (unit:Unit) => ["GroundUnit", "NavyUnit"].includes(unit.getCategory());
|
||||
const unitCanBeExported = (unit:Unit) => !["Aircraft", "Helicopter"].includes(unit.getCategory());
|
||||
|
||||
units.filter((unit:Unit) => unit.getAlive() && unitCanBeExported(unit)).forEach((unit:Unit) => {
|
||||
const category = unit.getCategoryLabel();
|
||||
|
||||
Reference in New Issue
Block a user