]> granicus.if.org Git - icinga2/commit
Add Utility::ParseVersion() and unit tests
authorMichael Friedrich <michael.friedrich@icinga.com>
Wed, 14 Aug 2019 09:22:55 +0000 (11:22 +0200)
committerMichael Friedrich <michael.friedrich@icinga.com>
Wed, 14 Aug 2019 09:22:55 +0000 (11:22 +0200)
commit96f62d2d34a7ee294a9830fa047cff22c1c808ff
treedf2efdccdaec82ad4ce4c77f95de0e57ab2b9979
parentfcca9643bc86cf445ec16d8b32cc830d8185e519
Add Utility::ParseVersion() and unit tests

This now uses a regex to extract the short version
similar to how Icinga Web 2 does it.

Additional unit tests prove the rule.
lib/base/utility.cpp
lib/base/utility.hpp
test/CMakeLists.txt
test/base-utility.cpp