Closed r3mi closed 5 years ago
I'm not able to reproduce this at the moment, what version of milsymbol were you using?
Version 1.3.3 , through NPM
var ms = require("milsymbol");
console.log(ms.getVersion());
var symbol = new ms.Symbol("SFGPUCI----D");
console.log(symbol.isValid(true));
console.log(symbol.isValid());
gives
milsymbol.js 1.3.3 - Copyright (c) 2017 Måns Beckman http://www.spatialillusions.com
1.3.3
{ drawInstructions: false, icon: true, mobility: true }
false
Fixed in major branch.
In my tests,
Symbol.isValid
seems to always returnfalse
. Example:Result:
I would expect
true
for such a valid SIDC. Am I missing something ?