From ab24b5f6b90d8f990635b8d865ad58ec9d8b90b2 Mon Sep 17 00:00:00 2001 From: Nathan Coad Date: Mon, 16 Sep 2024 11:05:02 +1000 Subject: [PATCH] update regex --- server/handler/vmModify.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/handler/vmModify.go b/server/handler/vmModify.go index e46af26..1069e9f 100644 --- a/server/handler/vmModify.go +++ b/server/handler/vmModify.go @@ -66,7 +66,7 @@ func (h *Handler) processConfigChanges(configChanges string) []map[string]string changes := regexp.MustCompile(`\n+`).Split(configChanges, -1) // Regular expression to match config type and the new value after '->' or '<-' - re := regexp.MustCompile(`(?P[^\s]+): \d+ -[><] (?P\w+);`) + re := regexp.MustCompile(`(?P[^\s]+): \d+ -[><] (?P[^;]+);`) // Result will hold a list of changes with type and new value var result []map[string]string