Math js is experiencing an issue where it crashes if the equation includes 1:999 or any additional nines.
try
{
if(args == "1:999") return message.channel.send('That question is not allowed');
} catch(error){
message.channel.send("there was an error")
}
Currently, executing the calculation 1:999 results in an error. However, I would like it to check for any occurrences of more than three nines in the equation. For instance, inputting 1:9999999 would also trigger an error. Any number with more than three nines will cause a crash.