From e8df6aa245eb745b9c43e9fa199203e0e1393288 Mon Sep 17 00:00:00 2001 From: Stephan Raabe Date: Sun, 4 Feb 2024 11:53:06 +0100 Subject: [PATCH] Update --- hypr/settings/.library/library.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hypr/settings/.library/library.sh b/hypr/settings/.library/library.sh index 47abaf7..311363f 100644 --- a/hypr/settings/.library/library.sh +++ b/hypr/settings/.library/library.sh @@ -156,13 +156,13 @@ _getConfEditor() { _reloadModule break;; COPY) - echo "Define the new file name. Please use [a-zA-Z1-9_-]+.conf" + echo "Define the new file name. Please use *.conf" filename=$(gum input --value="custom-${sel##*/}" --placeholder "Enter your filename") if [ -z $filename ] ;then echo "ERROR: No filename specified." else - if ! [[ $filename =~ ^[a-zA-Z1-9_-]+.conf ]]; then - echo "ERROR: Wrong filename format. Please use [a-zA-Z1-9_-]+.conf" + if ! [[ $filename =~ [^\s]+.conf ]]; then + echo "ERROR: Wrong filename format. Please use *.conf" else if [ -f $(dirname $sel)/$filename ] ;then echo "ERROR: File already exists."