We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71e393c commit 602538dCopy full SHA for 602538d
ruby/ql/lib/codeql/ruby/security/performance/RegExpTreeView.qll
@@ -59,6 +59,19 @@ module RegExpFlags {
59
}
60
61
62
+/**
63
+ * Provides regular expression patterns.
64
+ */
65
+module RegExpPatterns {
66
+ /**
67
+ * Gets a pattern that matches common top-level domain names in lower case.
68
69
+ string commonTLD() {
70
+ // according to ranking by http://google.com/search?q=site:.<<TLD>>
71
+ result = "(?:com|org|edu|gov|uk|net|io)(?![a-z0-9])"
72
+ }
73
+}
74
+
75
/**
76
* An element containing a regular expression term, that is, either
77
* a string literal (parsed as a regular expression)
0 commit comments