diff options
Diffstat (limited to 'src/main/scala/reading/models/Book.scala')
-rw-r--r-- | src/main/scala/reading/models/Book.scala | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/main/scala/reading/models/Book.scala b/src/main/scala/reading/models/Book.scala index 836fa19..34af272 100644 --- a/src/main/scala/reading/models/Book.scala +++ b/src/main/scala/reading/models/Book.scala @@ -17,9 +17,12 @@ case class Book( .toLowerCase .replaceAll("^les ", "") .replaceAll("^le ", "") - .replaceAll("^l'", "") - .replaceAll("^é", "e") - .replaceAll("^è", "e") + .replaceAll("^l’", "") + .replaceAll("^à la ", "") + .replaceAll("^au ", "") + .replaceAll("^aux ", "") + .replaceAll("é", "e") + .replaceAll("è", "e") formatTitle(this.title).compare(formatTitle(that.title)) } } |