From 0f934ad96576a6ecf1b616a5a824cc253abb5b3d Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Wed, 18 Jul 2018 15:15:12 +0200 Subject: meson: improve generation of vcs_tag Signed-off-by: Igor Gnatenko --- unittest/test_offline.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'unittest') diff --git a/unittest/test_offline.cc b/unittest/test_offline.cc index 92af78c..3f79fa8 100644 --- a/unittest/test_offline.cc +++ b/unittest/test_offline.cc @@ -179,7 +179,7 @@ TEST_CASE("Test version getter", "[fast]") { std::string s = library_version; std::string version("v[0-9]+\\.[0-9]+(\\.[0-9]+)?"); std::string git_suffix("-[0-9]+-g[0-9a-z]+"); - std::regex pattern(version + "(" + git_suffix + "|)"); + std::regex pattern(version + "(" + git_suffix + ")?"); REQUIRE(std::regex_match(s, pattern)); } -- cgit v1.2.3