From c35b79d3f61cef1f2e09777554d21512f5e98b82 Mon Sep 17 00:00:00 2001 From: Mzack9999 Date: Tue, 24 Nov 2020 19:12:14 +0100 Subject: [PATCH] improving parser regex --- v2/pkg/requests/bulk-http-request.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/v2/pkg/requests/bulk-http-request.go b/v2/pkg/requests/bulk-http-request.go index b90a0836..476ac57d 100644 --- a/v2/pkg/requests/bulk-http-request.go +++ b/v2/pkg/requests/bulk-http-request.go @@ -202,7 +202,7 @@ func (r *BulkHTTPRequest) handleRawWithPaylods(ctx context.Context, raw, baseURL dynamicValues := make(map[string]interface{}) // find all potentials tokens between {{}} - var re = regexp.MustCompile(`(?m)\{\{.+}}`) + var re = regexp.MustCompile(`(?m)\{\{[^}]+\}\}`) for _, match := range re.FindAllString(raw, -1) { // check if the match contains a dynamic variable expr := generators.TrimDelimiters(match)