chore: remove trailing 'A' from surname-range-start

- still add it if the previous end was too short
- this way overall shorter descriptions are possible
- in rare cases (at maxTagLength) this  prevented a description to be created
This commit is contained in:
Wolfgang Witt 2021-02-26 10:05:24 +01:00 committed by Wolfgang Witt
parent 7f1df44fc3
commit ad67c2e0e2

View File

@ -660,8 +660,10 @@ examAutoOccurrence (hash -> seed) rule ExamAutoOccurrenceConfig{..} occurrences
increase :: [CI Char] -> [CI Char]
increase [] = []
increase (c:cs)
| nextChar == head alphabet
| nextChar == head alphabet, rule == ExamRoomMatriculation
= nextChar : increase cs
| nextChar == head alphabet
= increase cs
| otherwise
= nextChar : cs
where