Skip to content
Snippets Groups Projects
Commit 49faf451 authored by Bastien DUMONT's avatar Bastien DUMONT :angel:
Browse files

move letter

parent 5bfead1a
No related branches found
No related tags found
1 merge request!37fix: remove accents in last names
Pipeline #55092 passed
...@@ -5,12 +5,12 @@ const REPLACE_CHARS = { ...@@ -5,12 +5,12 @@ const REPLACE_CHARS = {
ô: 'o', ô: 'o',
û: 'u', û: 'u',
ä: 'a', ä: 'a',
à: 'a',
ë: 'e', ë: 'e',
ï: 'i', ï: 'i',
ö: 'o', ö: 'o',
ü: 'u', ü: 'u',
é: 'e', é: 'e',
à: 'a',
è: 'e', è: 'e',
ç: 'c', ç: 'c',
} }
...@@ -22,7 +22,7 @@ const REPLACE_CHARS = { ...@@ -22,7 +22,7 @@ const REPLACE_CHARS = {
*/ */
function sanitizeLastname(lastname) { function sanitizeLastname(lastname) {
return lastname return lastname
.replace(/[âêîôûäàëïöüéèç]/g, match => REPLACE_CHARS[match]) .replace(/[âêîôûäëïöüéàèç]/g, match => REPLACE_CHARS[match])
.trim() .trim()
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment