mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-23 21:15:25 +00:00
Merge pull request #420 from projectdiscovery/bugfix-expression-parser
improving parser regex
This commit is contained in:
commit
0b0fd3c70a
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user