m-lm / minmath

A minimalist mental math website.
MIT License
1 stars 0 forks source link

Add extra validation for answer input #9

Closed m-lm closed 10 months ago

m-lm commented 11 months ago

Current error handling is pretty effective except in the case of a numeric value followed by string values. For example: "123hello" would not currently be considered invalid input by the error handler, but "hello123" rightfully is for some reason. Something to do with parseInt function looking at the first characters being numerical?