diff --git a/src/ts/input-validators/calculator-input-validator.ts b/src/ts/input-validators/calculator-input-validator.ts index 64490a746..2341fc218 100644 --- a/src/ts/input-validators/calculator-input-validator.ts +++ b/src/ts/input-validators/calculator-input-validator.ts @@ -3,6 +3,10 @@ import * as math from "mathjs"; export class CalculatorInputValidator implements InputValidator { public isValidForSearchResults(userInput: string): boolean { + if (userInput.indexOf("version") > -1) { + return false; + } + let result: any; try { // Mathjs throws an error when input cannot be evaluated