We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
mailto:
1 parent d7a96d6 commit 1f9749fCopy full SHA for 1f9749f
1 file changed
javascript/ql/src/DOM/TargetBlank.ql
@@ -31,9 +31,7 @@ predicate hasDynamicHrefHostAttributeValue(DOM::ElementDefinition elem) {
31
// fixed string with templating
32
url.regexpMatch(Templating::getDelimiterMatchingRegexpWithPrefix("[^?#]*")) and
33
// ... that does not start with a fixed host or a relative path (common formats)
34
- not url.regexpMatch("(?i)((https?:)?//)?[-a-z0-9.]*/.*") and
35
- // ... that is not a mailto: link
36
- not url.regexpMatch("mailto:.*")
+ not url.regexpMatch("(?i)((https?:)?//)?[-a-z0-9.]*/.*")
37
)
38
39
}
0 commit comments