This commit is contained in:
Michael Drury 2021-02-02 20:29:10 +00:00
parent 8d40cb6b32
commit 30b004ba1f
1 changed files with 3 additions and 1 deletions

View File

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