Skip to content

Commit

Permalink
Merge pull request #874 from minvws/bug/1938-identitycheck
Browse files Browse the repository at this point in the history
Bug/1938 identitycheck
  • Loading branch information
Rool authored Sep 22, 2021
2 parents e1f02bd + 63f738b commit 6e9a693
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 6e9a693

Please sign in to comment.