tessen

default description
git clone https://git.awy.one/tessen.git
Log | Files | Refs | README | LICENSE

commit 7bd619819171ed42ddddd138d3e8219ddd01ea8c
parent 6a86f0ac05a756c67be7d5ecae98e96e04c6232a
Author: Ayush Agarwal <ayush@fastmail.in>
Date:   Fri, 18 Feb 2022 22:15:55 +0530

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:
Mtessen | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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