Skip to content

Commit

Permalink
1938: Fixed Identity Checker. (missing a J in the alphabet)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rool committed Sep 22, 2021
1 parent e1f02bd commit 63f738b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CTRTests/Infrastrucure/Services/IdentityCheckerTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,8 @@ class IdentityCheckerTests: XCTestCase {
"Rool": "R",
"rool": "R",
" rool": "R",
"-rool": "R"
"-rool": "R",
"Jan": "J"
]
for (value, expected) in values {
let identity = EventFlow.Identity(infix: nil, firstName: value, lastName: nil, birthDateString: nil)
Expand Down
2 changes: 1 addition & 1 deletion Sources/CTR/Infrastructure/Services/IdentityChecker.swift
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ extension EventFlow.Identity {
class Normalizer {

static let permittedCharacterSet = CharacterSet(charactersIn: "abcdefghijklmnopqrstuvwxyz ")
static let initialsCharacterSet = CharacterSet(charactersIn: "ABCDEFGHILKLMNOPQRSTUVWXYZ")
static let initialsCharacterSet = CharacterSet(charactersIn: "ABCDEFGHIJKLMNOPQRSTUVWXYZ")
static let filterCharacterSet = CharacterSet(charactersIn: "-' ")

/// Normalize any input, transform to latin, remove all diacritics
Expand Down

0 comments on commit 63f738b

Please sign in to comment.