Closed kdeme closed 1 year ago
In Nim 1.6 parseEnum normalizes the string except for the first character. Nim 1.2 would normalize for all characters. In config options the latter behaviour is required so this custom function is needed.
parseEnum
In case the Nim version conditions are too much disliked, we could also just copy paste the simple 1.2 code: https://github.com/nim-lang/Nim/blob/v1.2.18/lib/pure/strutils.nim#L1253
Going to merge this as the failures on 1.6 and devel seem something new and unrelated a this dummy PR also fails: https://github.com/status-im/nim-confutils/pull/64
In Nim 1.6
parseEnum
normalizes the string except for the first character. Nim 1.2 would normalize for all characters. In config options the latter behaviour is required so this custom function is needed.In case the Nim version conditions are too much disliked, we could also just copy paste the simple 1.2 code: https://github.com/nim-lang/Nim/blob/v1.2.18/lib/pure/strutils.nim#L1253