Skip to content

Commit dd07cc9

Browse files
authored
Merge pull request #1296 from maxmind/ugexe/email-nfc
Normalize email addresses to NFC
2 parents 8c74e0d + c42ef70 commit dd07cc9

File tree

7 files changed

+97
-4518
lines changed

7 files changed

+97
-4518
lines changed

.eslintrc.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,17 @@ module.exports = {
3434
"rules": {
3535
"@typescript-eslint/await-thenable": "error",
3636
}
37+
},
38+
{
39+
"plugins": [
40+
"json"
41+
],
42+
"files": [
43+
"*.json",
44+
],
45+
"rules": {
46+
"json/*": ["error"]
47+
}
3748
}
3849
],
3950
"parserOptions": {

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ CHANGELOG
2727
become `gmail.com`.
2828
* Additional `gmail.com` typos are now normalized when `hashAddress` is
2929
used. For example, `gmali.com` will become `gmail.com`.
30+
* When `hashAddress` is used, the domain part of an email address is now
31+
normalized to NFC.
32+
* When `hashAddress` is used, the local part of an email address is now
33+
normalized to NFC.
3034

3135
6.0.0 (2023-12-05)
3236
------------------

fixtures/insights.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,6 @@
136136
"autonomous_system_organization": "Linkem IR WiMax Network",
137137
"connection_type": "Cable/DSL",
138138
"domain": "example.com",
139-
"ip_address": "1.2.3.4",
140139
"is_anonymous": true,
141140
"is_anonymous_proxy": true,
142141
"is_anonymous_vpn": true,

0 commit comments

Comments
 (0)