mirror of
https://github.com/github/codeql.git
synced 2025-12-23 12:16:33 +01:00
C++: Improve the regexps.
This commit is contained in:
@@ -21,13 +21,13 @@ private string privateNames() {
|
||||
".*(" +
|
||||
// Inspired by the list on https://cwe.mitre.org/data/definitions/359.html
|
||||
// Government identifiers, such as Social Security Numbers
|
||||
"social.*security|" +
|
||||
"social.?security|" +
|
||||
// Contact information, such as home addresses and telephone numbers
|
||||
"postcode|zipcode|telephone|" +
|
||||
"post.?code|zip.?code|telephone|" +
|
||||
// Geographic location - where the user is (or was)
|
||||
"latitude|longitude|" +
|
||||
// Financial data - such as credit card numbers, salary, bank accounts, and debts
|
||||
"credit.*card|salary|bank.*account|" +
|
||||
"credit.?card|salary|bank.?account|" +
|
||||
// Communications - e-mail addresses, private e-mail messages, SMS text messages, chat logs, etc.
|
||||
"email|mobile|employer|" +
|
||||
// Health - medical conditions, insurance status, prescription records
|
||||
|
||||
Reference in New Issue
Block a user