1
0
Fork 0
mirror of synced 2024-10-01 09:38:55 +13:00
This commit is contained in:
Michael Drury 2021-02-02 20:29:10 +00:00
parent 7e4e0db30f
commit cb4f7ade75

View file

@ -118,7 +118,9 @@ module.exports.isValid = string => {
return true
} catch (err) {
const msg = err ? err.message : ""
const foundCase = specialCases.find(spCase => msg.toLowerCase().includes(spCase))
const foundCase = specialCases.find(spCase =>
msg.toLowerCase().includes(spCase)
)
// special case for maths functions - don't have inputs yet
return !!foundCase
}