Address comments

This commit is contained in:
Arthur Baars
2022-03-11 14:25:34 +01:00
parent ce50f35dda
commit cf4b834536
7 changed files with 12 additions and 12 deletions

View File

@@ -999,13 +999,13 @@ predicate isInterpretedAsRegExp(DataFlow::Node source) {
}
/**
* Provides regular expression patterns.
* Provides utility predicates related to regular expressions.
*/
module RegExpPatterns {
/**
* Gets a pattern that matches common top-level domain names in lower case.
*/
string commonTLD() {
string getACommonTld() {
// according to ranking by http://google.com/search?q=site:.<<TLD>>
result = "(?:com|org|edu|gov|uk|net|io)(?![a-z0-9])"
}