Skip to content

Commit 5fc395c

Browse files
author
Ulrich Petri
committed
Fixed --prefix and --sep regexes
Fixes: #1
1 parent d99147d commit 5fc395c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/zfs-auto-snapshot.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ do
256256
while test "${#opt_prefix}" -gt '0'
257257
do
258258
case $opt_prefix in
259-
([![:alnum:]_-.:\ ]*)
259+
([![:alnum:]_.:\ -]*)
260260
print_log error "The $1 parameter must be alphanumeric."
261261
exit 130
262262
;;
@@ -278,7 +278,7 @@ do
278278
;;
279279
(--sep)
280280
case "$2" in
281-
([[:alnum:]_-.:\ ])
281+
([[:alnum:]_.:\ -])
282282
:
283283
;;
284284
('')

0 commit comments

Comments
 (0)