Closed nlukic97 closed 2 years ago
I have just created a pull request which should fix this issue: https://github.com/jayasurian123/fen-validator/pull/23
good catch. If any other type except "string" return false.
v1.4.2 has the fix you have submitted. thanks.
If an argument that is not of type 'string' is passed to the parseFEN function, this will cause an error when trying to split the fen argument.