Fix heure naissance et attaque sur véhicules

This commit is contained in:
2021-06-05 21:35:43 +02:00
parent 575b8a0a30
commit e92f4130f2
3 changed files with 11 additions and 4 deletions

View File

@ -24,6 +24,11 @@ export class Grammar {
return words?.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g, "") ?? words;
}
/* -------------------------------------------- */
static toLowerCaseNoAccentNoSpace(words) {
return words?.toLowerCase().normalize("NFD").replace(/[ \u0300-\u036f]/g, "") ?? words;
}
/* -------------------------------------------- */
static articleDetermine(genre) {
switch (Grammar.toLowerCaseNoAccent(genre)) {