From 5a7101481c19ec8b1cad4ad8a88efa980dbeada2 Mon Sep 17 00:00:00 2001 From: Esben Sparre Andreasen Date: Wed, 3 Apr 2019 13:33:43 +0200 Subject: [PATCH] JS: make message for js/incomplete-hostname-regexp more informative --- .../CWE-020/IncompleteHostnameRegExp.ql | 21 ++++---- .../CWE-020/IncompleteHostnameRegExp.expected | 48 +++++++++---------- 2 files changed, 36 insertions(+), 33 deletions(-) diff --git a/javascript/ql/src/Security/CWE-020/IncompleteHostnameRegExp.ql b/javascript/ql/src/Security/CWE-020/IncompleteHostnameRegExp.ql index 16dd4ae67fc..7f6f3dbaa46 100644 --- a/javascript/ql/src/Security/CWE-020/IncompleteHostnameRegExp.ql +++ b/javascript/ql/src/Security/CWE-020/IncompleteHostnameRegExp.ql @@ -36,22 +36,25 @@ predicate isIncompleteHostNameRegExpPattern(string pattern, string hostPart) { // an unescaped single `.` "(?