diff --git a/.config/ags/widgets/overview/miscfunctions.js b/.config/ags/widgets/overview/miscfunctions.js index 42e2572f..2ca0bf95 100644 --- a/.config/ags/widgets/overview/miscfunctions.js +++ b/.config/ags/widgets/overview/miscfunctions.js @@ -66,9 +66,9 @@ export function execAndClose(command, terminal) { execAsync(command).catch(print); } -export function startsWithNumber(str) { - var pattern = /^\d/; - return pattern.test(str); +export function couldBeMath(str) { + const regex = /^[0-9.+*/-]/; + return regex.test(str); } export function expandTilde(path) {