Skip to content

Commit

Permalink
Regexes improved: function inputs regex
Browse files Browse the repository at this point in the history
  • Loading branch information
ImAyrix committed Dec 31, 2023
1 parent 9180292 commit 51b1f1b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,8 @@ func findParameter(link string) []string {
allParameter = append(allParameter, stringFormat...)

// Function input
funcInput := myRegex(`.*\(\s*["|']?([\w\-]+)["|']?\s*(\,\s*["|']?([\w\-]+)["|']?\s*)?(\,\s*["|']?([\w\-]+)["|']?\s*)?\)`, body, []int{1, 3, 5})
funcInput := myRegex(`.*\(\s*["|']?([\w\-]+)["|']?\s*(\,\s*["|']?([\w\-]+)["|']?\s*)?(\,\s*["|']?([\w\-]+)["|']?\s*)?(\,\s*["|']?([\w\-]+)["|']?\s*)?(\,\s*["|']?([\w\-]+)["|']?\s*)?(\,\s*["|']?([\w\-]+)["|']?\s*)?(\,\s*["|']?([\w\-]+)["|']?\s*)?(\,\s*["|']?([\w\-]+)["|']?\s*)?(\,\s*["|']?([\w\-]+)["|']?\s*)?(\,\s*["|']?([\w\-]+)["|']?\s*)?\)`,
body, []int{1, 3, 5, 7, 9, 11, 13, 15, 17, 19})
allParameter = append(allParameter, funcInput...)

// Path Input
Expand Down

0 comments on commit 51b1f1b

Please sign in to comment.