C++: Improve the regexps.

This commit is contained in:
Geoffrey White
2022-03-29 10:03:28 +01:00
parent 393819837c
commit b94ade3bdd
3 changed files with 6 additions and 4 deletions

View File

@@ -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