Fix /astro avec ou sans accents
This commit is contained in:
@ -12,7 +12,12 @@ export class Grammar {
|
||||
}
|
||||
return article + ' ' + word;
|
||||
}
|
||||
|
||||
static startsWithVoyel(word) {
|
||||
return word.match(/^[aeiouy]/i)
|
||||
}
|
||||
|
||||
static toLowerCaseNoAccent(words) {
|
||||
return words?.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g, "") ?? words;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user