Skip to content

Commit

Permalink
Merge branch 'main' into feature/rewrite-semantic-search
Browse files Browse the repository at this point in the history
  • Loading branch information
williambelle committed Oct 27, 2023
2 parents 3ebb4da + 135e4cf commit 844f9a4
Show file tree
Hide file tree
Showing 4 changed files with 182 additions and 68 deletions.
200 changes: 136 additions & 64 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/services/people.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ function getPersonByPhone (number) {
}

function getPersonByName (name) {
const terms = name.split(/\s+/);
const term = name.normalize('NFD').replace(/\p{Diacritic}/gu, '');
const terms = term.split(/\s+/);
const ldapQuery = ldapUtil.buildLdapQueryForPerson(util.permutations(terms));
return getPerson(ldapQuery);
}
Expand Down
Loading

0 comments on commit 844f9a4

Please sign in to comment.