Open
Description
Description of the false positive
var todoRE = regexp.MustCompile(`^// TODO (\Qhttps://github.com/FerretDB/\E([-\w]+)/issues/(\d+))$`)
That line is annotated with: "This regular expression has an unescaped dot before 'com', so it might match more hosts than expected when the regular expression is used."
What it misses is \Q...\E
escape syntax.
Code samples or links to source code
URL to the alert on GitHub code scanning (optional)
https://github.com/FerretDB/FerretDB/security/code-scanning/9