Hi,
not tested, but I noticed that in src/buildingParts.js, line 363 to 367, you have for the function normalizeLength:
if (length.includes('mi')){
// remove final character.
return parseFloat(length.substring(0, length.length - 2)) * 5280 * 12 * 2.54 / 100;
}
if (length.includes('nmi')){
// remove final character.
return parseFloat(length.substring(0, length.length - 3)) * 1852;
}
these 2 checks should be inverted, as if you have 'nmi', you also have 'mi' and so, the first test will match and the second cannot be reached.
thanks for soft, very helpfull,
Pierre
Hi,
not tested, but I noticed that in src/buildingParts.js, line 363 to 367, you have for the function normalizeLength:
these 2 checks should be inverted, as if you have 'nmi', you also have 'mi' and so, the first test will match and the second cannot be reached.
thanks for soft, very helpfull,
Pierre