Skip to content

Commit bc16fb5

Browse files
committed
Swift: Small possible improvements.
1 parent 2ba2315 commit bc16fb5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

swift/ql/lib/codeql/swift/security/SensitiveExprs.qll

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,19 +57,19 @@ class SensitivePrivateInfo extends SensitiveDataType, TPrivateInfo {
5757
// and telephone numbers
5858
"(mob(ile)?|home).?(num|no|tel|phone)|(tel|fax).?(num|no|phone)|" + "emergency.?contact|" +
5959
// Geographic location - where the user is (or was)
60-
"latitude|longitude|nationality|" +
60+
"l(atitude|ongitude)|nationality|" +
6161
// Financial data - such as credit card numbers, salary, bank accounts, and debts
6262
"(credit|debit|bank|visa).?(card|num|no|acc(ou?)nt)|acc(ou)?nt.?(no|num|credit)|" +
6363
"salary|billing|credit.?(rating|score)|" +
6464
// Communications - e-mail addresses, private e-mail messages, SMS text messages, chat logs, etc.
65-
"email|e_mail|" +
65+
"e(mail|_mail)|" +
6666
// Health - medical conditions, insurance status, prescription records
67-
"birth.?(date|day)|(date|day).?(of.?)?birth|" +
67+
"birth.?da(te|y)|da(te|y).?(of.?)?birth|" +
6868
"medical|(health|care).?plan|healthkit|appointment|prescription|" +
6969
"blood.?(type|alcohol|glucose|pressure)|heart.?(rate|rhythm)|body.?(mass|fat)|" +
7070
"menstrua|pregnan|insulin|inhaler|" +
7171
// Relationships - work and family
72-
"employer|employee|spouse|maiden.?name" +
72+
"employ(er|ee)|spouse|maiden.?name" +
7373
// ---
7474
").*"
7575
}

0 commit comments

Comments
 (0)