Skip to content

Commit

Permalink
[fix] Add back toLowerCase to cleanAuthor/Title (required by other uses)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikiher committed Oct 3, 2023
1 parent 46b0b3a commit 5d7c197
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/finders/BookFinder.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,12 @@ class BookFinder {

// Remove single quotes (i.e. "Ender's Game" becomes "Enders Game")
cleaned = cleaned.replace(/'/g, '')
return this.replaceAccentedChars(cleaned)
return this.replaceAccentedChars(cleaned).toLowerCase()
}

cleanAuthorForCompares(author) {
if (!author) return ''
return this.replaceAccentedChars(author)
return this.replaceAccentedChars(author).toLowerCase()
}

filterSearchResults(books, title, author, maxTitleDistance, maxAuthorDistance) {
Expand Down

0 comments on commit 5d7c197

Please sign in to comment.