fix: correctly calculate maximum user name length
This commit is contained in:
parent
bc42f3072f
commit
cd07a56a9f
@ -565,7 +565,7 @@ examAutoOccurrence (hash -> seed) rule ExamAutoOccurrenceConfig{..} occurrences
|
||||
postprocess result = seq resultAscList (resultAscList, resultUsers)
|
||||
where
|
||||
maxTagLength :: Int
|
||||
maxTagLength = maybe 0 maximum $ fromNullable $ map (length . snd) result
|
||||
maxTagLength = maybe 0 maximum $ fromNullable $ concatMap (map length . snd) result
|
||||
|
||||
rangeAlphabet :: [CI Char]
|
||||
rangeAlphabet = case rule of
|
||||
|
||||
Loading…
Reference in New Issue
Block a user