aboutsummaryrefslogtreecommitdiff
path: root/tessen
diff options
context:
space:
mode:
authorAyush Agarwal <ayush@fastmail.in>2022-02-18 22:15:55 +0530
committerAyush Agarwal <ayush@fastmail.in>2022-02-18 22:15:55 +0530
commit7bd619819171ed42ddddd138d3e8219ddd01ea8c (patch)
tree30d13a55fc69d074e5fe1b6e50e660d7fea4712a /tessen
parent6a86f0ac05a756c67be7d5ecae98e96e04c6232a (diff)
refactor: make the config file regex more strict
this should prevent expansion of $PS escape sequences like \u for username wildcard characters have been removed as well
Diffstat (limited to 'tessen')
-rwxr-xr-xtessen2
1 files changed, 1 insertions, 1 deletions
diff --git a/tessen b/tessen
index 2e3fecb..b6f006e 100755
--- a/tessen
+++ b/tessen
@@ -714,7 +714,7 @@ parse_config() {
local line idx key val
local -a config_arr
- local config_regex='^[[:alpha:]_]+="[[:alnum:]~_.\/^$|()*?-]+"$'
+ local config_regex='^[[:alpha:]_]+="[[:alnum:]~_./^$|()-]+"$'
# in case the user hasn't provided an explicit location, we'll have to check
# if the default file exists before we parse it
if [[ -s $tsn_config ]]; then