From c89752332123c5d46fb48ca1c7affd1da6e2679a Mon Sep 17 00:00:00 2001 From: Myzel394 <50424412+Myzel394@users.noreply.github.com> Date: Tue, 10 Sep 2024 22:40:18 +0200 Subject: [PATCH] fix(sshd_config): Add missing regex --- handlers/sshd_config/fields/utils.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/handlers/sshd_config/fields/utils.go b/handlers/sshd_config/fields/utils.go index 78ebcc7..eb092d0 100644 --- a/handlers/sshd_config/fields/utils.go +++ b/handlers/sshd_config/fields/utils.go @@ -4,9 +4,12 @@ import ( docvalues "config-lsp/doc-values" "config-lsp/utils" "os/exec" + "regexp" "strings" ) +var isJustDigitsPattern = regexp.MustCompile(`^\d+$`) + var booleanEnumValue = docvalues.EnumValue{ EnforceValues: true, Values: []docvalues.EnumString{