Skip to content

Commit

Permalink
trim supannAliasLogin
Browse files Browse the repository at this point in the history
  • Loading branch information
prigaux committed Nov 6, 2023
1 parent a9b7bb4 commit 30fb127
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shared/conf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const capitalizeUpperCaseWords = (s: string) => s.replace(/([A-Z\u00C0-\u00DC][a

const normalizeNomPopre = (s: string) => capitalizeUpperCaseWords(normalizeApostropheAndTrim(s))

const normalize_noAccent_noUpperCase = (s:string) => deburr(s.toLowerCase())
const normalize_noAccent_noUpperCase_trim = (s:string) => trim(deburr(s.toLowerCase()))

const wsgroupsURL = "https://wsgroups.univ-paris1.fr";

Expand Down Expand Up @@ -94,7 +94,7 @@ export default {
duration: { title: "Durée" },
startdate: { title: "Date de début", format: 'date', uiType: 'date' },
enddate: { title: "Date de fin", format: 'date', uiType: 'date' },
supannAliasLogin: { title: 'Identifiant', normalize: normalize_noAccent_noUpperCase },
supannAliasLogin: { title: 'Identifiant', normalize: normalize_noAccent_noUpperCase_trim },
supannCodeINE: { title: "Numéro INE" },
supannEtuId: { title: "Numéro étudiant" },
supannEmpId: { title: 'Numéro agent' },
Expand Down

0 comments on commit 30fb127

Please sign in to comment.