fix: Escaped the dot in a regex matching a domain

dev
forgedhallpass 2021-11-26 17:12:27 +02:00
parent 5eca474c5e
commit cd651ddf6f
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ import (
"github.com/projectdiscovery/nuclei/v2/pkg/templates"
)
var pathRegex = regexp.MustCompile(`github.com/projectdiscovery/nuclei/v2/(?:internal|pkg)/(?:.*/)?([A-Za-z.]+)`)
var pathRegex = regexp.MustCompile(`github\.com/projectdiscovery/nuclei/v2/(?:internal|pkg)/(?:.*/)?([A-Za-z.]+)`)
func main() {
// Generate yaml syntax documentation