This commit is contained in:
Joe Farebrother
2022-11-30 11:42:19 +00:00
parent fae4043008
commit a14ebb7c03
8 changed files with 8 additions and 6 deletions

View File

@@ -144,5 +144,5 @@ predicate missingPinning(DataFlow::Node node, string domain) {
/** Gets the domain name from the given string literal */
private string getDomain(CompileTimeConstantExpr expr) {
result = expr.getStringValue().regexpCapture("(https?://)?([^/]*)/?", 2)
result = expr.getStringValue().regexpCapture("(https?://)?([^/]*)(/.*)?", 2)
}