Explorar o código

Allow - as autorized keys

Jaap Marcus %!s(int64=5) %!d(string=hai) anos
pai
achega
faacafc140
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      func/main.sh

+ 1 - 1
func/main.sh

@@ -922,7 +922,7 @@ is_service_format_valid() {
 }
 
 is_hash_format_valid() {
-  if ! [[ "$1" =~ ^[_A-Za-z0-9]{1,32}$ ]]; then
+  if ! [[ "$1" =~ ^[-_A-Za-z0-9]{1,32}$ ]]; then
         check_result $E_INVALID "invalid $2 format :: $1"
     fi    
 }