Module versions

Module versions 

Source
Expand description

§Versioning utilities

A toolbox of small utilities based on semver.org. Useful for version control operations.

Functions§

semver_parse
Parse a provide slice and get a semver version in the form of .. If the input has only ., we expand to ..0
semver_parse_or_default
Parse a provide slice and get a semver version in the form of .. If the input has only ., we expand to ..0 In case of failure, return 0.0.0
semver_parse_regex
Extract version based on provided pattern capture and delimiter Example Pattern: “btsys_intbrd_fw_v_(.*).hex” Example delimiter: ‘_’ to parse “btsys_intbrd_fw_v_0_9.hex” as version 0.9