Преглед изворни кода

Merge pull request #1709 from jaapmarcus/fix/1708-invalid-format

Allow - as autorized keys
Kristan Kenney пре 5 година
родитељ
комит
5d82dc83ff
1 измењених фајлова са 1 додато и 1 уклоњено
  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    
 }