You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@heron.apache.org by GitBox <gi...@apache.org> on 2018/08/28 23:44:21 UTC

[GitHub] nwangtw commented on a change in pull request #3009: fix version detection to avoid matching on single dot

nwangtw commented on a change in pull request #3009: fix version detection to avoid matching on single dot
URL: https://github.com/apache/incubator-heron/pull/3009#discussion_r213506611
 
 

 ##########
 File path: bazel_configure.py
 ##########
 @@ -149,7 +149,7 @@ def fail(message):
 
 # Assumes the version is at the end of the first line consisting of digits and dots
 def get_trailing_version(line):
-  version = re.search('([\d.]+)$', line)
+  version = re.search('([\d.]+\d)$', line)
 
 Review comment:
   Hmm. It seems this new regex doesn't match "Python 3.6.4 :: Anaconda, Inc."?
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services