Skip to content

Commit

Permalink
Update suggested_matches_filters.js
Browse files Browse the repository at this point in the history
  • Loading branch information
shogenapps committed Nov 29, 2023
1 parent 855966c commit f82f069
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -981,6 +981,10 @@ function highlightMatches() {
matchCount++;
}

// Strip UK from the end of the location to match England, Scotland, Wales
extractedData.birthLocation = extractedData.birthLocation.replace(/, (United Kingdom|UK|U.K.)$/g, "");
newPerson.BirthLocation = newPerson.BirthLocation.replace(/, (United Kingdom|UK|U.K.)$/g, "");

if (extractedData.birthLocation === newPerson.BirthLocation) {
$(this).addClass("birthLocationMatch");
$(this).append($("<span class='birthLocationMatchSpan matchSpan'>Birth Location Match</span>"));
Expand Down

0 comments on commit f82f069

Please sign in to comment.