Skip to content

Commit faacafc

Browse files
committed
Allow - as autorized keys
1 parent 27556a9 commit faacafc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

func/main.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -922,7 +922,7 @@ is_service_format_valid() {
922922
}
923923

924924
is_hash_format_valid() {
925-
if ! [[ "$1" =~ ^[_A-Za-z0-9]{1,32}$ ]]; then
925+
if ! [[ "$1" =~ ^[-_A-Za-z0-9]{1,32}$ ]]; then
926926
check_result $E_INVALID "invalid $2 format :: $1"
927927
fi
928928
}

0 commit comments

Comments
 (0)