This is an automated email from the ASF dual-hosted git repository.

kgiusti pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/qpid-dispatch.git


The following commit(s) were added to refs/heads/master by this push:
     new dadc02a  NO-JIRA: fix regex for matching tox version
dadc02a is described below

commit dadc02a2a9b3fde9acdd334da1e462fba922be6e
Author: Kenneth Giusti <[email protected]>
AuthorDate: Wed Feb 26 10:31:42 2020 -0500

    NO-JIRA: fix regex for matching tox version
---
 tests/CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 8fee36f..343d4d6 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -161,7 +161,7 @@ if (TOX_EXE)
                   OUTPUT_VARIABLE TOX_VERSION)
   if (TOX_STATUS EQUAL 0)
     string(STRIP "${TOX_VERSION}" TOX_VERSION)
-    string(REGEX MATCH "^[0-9][.][0-9][.][0-9]" TOX_VERSION "${TOX_VERSION}")
+    string(REGEX MATCH "^[0-9]+[.][0-9]+[.][0-9]+" TOX_VERSION 
"${TOX_VERSION}")
     if (TOX_VERSION STRLESS TOX_MIN_VERSION)
       message( STATUS "tox version ${TOX_VERSION} < required version 
${TOX_MIN_VERSION} - skipping python-checker")
     else (TOX_VERSION STRLESS TOX_MIN_VERSION)


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to