When parsing a duration, the current regular expression for "integer" prohibits values that have a leading '0'. This also include the value "0ms", such as in the AAE throttle setting anti_entropy.throttle.tier1.delay = 0ms.
The list_to_integer call in the integer definition deals with the leading zeros properly. However, if it is desired to prohibit leading zeros for aesthetic reasons while permitting the value '0ms', the regular expression ( ([1-9] [0-9]* ) / "0" ) can be used.
When parsing a duration, the current regular expression for "integer" prohibits values that have a leading '0'. This also include the value "0ms", such as in the AAE throttle setting
anti_entropy.throttle.tier1.delay = 0ms
.The
list_to_integer
call in the integer definition deals with the leading zeros properly. However, if it is desired to prohibit leading zeros for aesthetic reasons while permitting the value '0ms', the regular expression( ([1-9] [0-9]* ) / "0" )
can be used.