mirror of
https://github.com/danbulant/dots-hyprland
synced 2026-05-24 12:22:09 +00:00
runner: improve math detection
This commit is contained in:
parent
7ca8702a66
commit
dad5141472
1 changed files with 3 additions and 3 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue