admin: handle case insensitive ucq

This commit is contained in:
nemunaire 2020-01-28 18:47:36 +01:00
parent 32fe61f557
commit 23b6b2b005

View File

@ -170,7 +170,7 @@ func buildKeyFlag(exercice fic.Exercice, flag ExerciceFlag, flagline int, defaul
Value: val,
})
if val == raw {
if val == raw || (!flag.CaseSensitive && val == strings.ToLower(raw)) {
hasOne = true
}
}