Yeah. The version extraction is quite limited to specific format. Maybe we can 
update the code totally in future.

I tested with https://regex101.com/ and my local python and it doesn't match. I 
think "([\d.]+\d)$'" requires the last character to be digit in order to match.

>>> re.search('([\d.]+\d)$', "Python 3.6.4")
<_sre.SRE_Match object at 0x1047ca030>
>>> re.search('([\d.]+\d)$', "Python 3.6.4 :: Anaconda, Inc.")
>>>


[ Full content available at: 
https://github.com/apache/incubator-heron/pull/3009 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to