fixed error in different localization (#312)

This commit is contained in:
windstep
2025-04-11 00:41:00 +03:00
committed by GitHub
parent dab301e6d3
commit 1a556d05ba

View File

@@ -32,7 +32,12 @@ export function parseFormatOneLine(line: string): StructureItem | null {
return null; return null;
} }
if (rawTypeName != STRUCTURE_TYPE_MAP[rawTypeId]) { // in some localizations (like russian) there is an option called "mark names with *"
// The example output will be "35826 Itamo - Research & Production Azbel* 609 м"
// so, let's fix this
const localizationFixedName = rawTypeName.replace("*", "");
if (localizationFixedName != STRUCTURE_TYPE_MAP[rawTypeId]) {
return null; return null;
} }