update regex
This commit is contained in:
1 parent
56cf2e8366
commit
ab24b5f6b9
1 file changed
+1
-1
@@ -66,7 +66,7 @@ func (h *Handler) processConfigChanges(configChanges string) []map[string]string
|
|||||||
changes := regexp.MustCompile(`\n+`).Split(configChanges, -1)
|
changes := regexp.MustCompile(`\n+`).Split(configChanges, -1)
|
||||||
|
|
||||||
// Regular expression to match config type and the new value after '->' or '<-'
|
// Regular expression to match config type and the new value after '->' or '<-'
|
||||||
re := regexp.MustCompile(`(?P<type>[^\s]+): \d+ -[><] (?P<newValue>\w+);`)
|
re := regexp.MustCompile(`(?P<type>[^\s]+): \d+ -[><] (?P<newValue>[^;]+);`)
|
||||||
|
|
||||||
// Result will hold a list of changes with type and new value
|
// Result will hold a list of changes with type and new value
|
||||||
var result []map[string]string
|
var result []map[string]string
|
||||||
|
|||||||
Reference in new issue
Block a user