comparison core/features.lua @ 14217:7eb0e47418ab 13.0

util.human.io: Add simple version comparison This is a small helper function that compares version string (it can be passed to table.sort() as a comparator). Full version sorts (e.g. semver, and natural/alphanumeric sort in general) are more complex, and I would like to eventually support those. But this is a stable branch and we don't need it for anything just yet. Regarding justification for the stable branch: The function is being committed with extensive tests, and isn't currently used anywhere. The plan is to use it in an upcoming update of how TLS profiles are configured, but the inputs in that case will be fixed (meaning that the risk of breakage is lower than if we were running it against arbitrary data).
author Matthew Wild <mwild1@gmail.com>
date Fri, 12 Jun 2026 11:38:39 +0100
parents 569fae28a2f3
children 565debd9c37a
comparison
equal deleted inserted replaced
14213:75d09be04f13 14217:7eb0e47418ab
35 -- new module.ready() 35 -- new module.ready()
36 "module-ready"; 36 "module-ready";
37 37
38 -- SIGUSR1 and 2 events 38 -- SIGUSR1 and 2 events
39 "signal-events"; 39 "signal-events";
40
41 -- util.human.io.simple_version_compare
42 "simple-version-compare";
40 }; 43 };
41 }; 44 };