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)
|
postprocess result = seq resultAscList (resultAscList, resultUsers)
|
||||||
where
|
where
|
||||||
maxTagLength :: Int
|
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 :: [CI Char]
|
||||||
rangeAlphabet = case rule of
|
rangeAlphabet = case rule of
|
||||||
|
|||||||
Reference in New Issue
Block a user