Skip to content

Commit

Permalink
MJ: Add fix suggested by @vcunat on _libcrypto_ctypes regex
Browse files Browse the repository at this point in the history
  • Loading branch information
BibMartin authored and BibMartin committed Aug 10, 2023
1 parent 3c2cdea commit 1103b2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oscrypto/_openssl/_libcrypto_ctypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@

is_libressl = 'LibreSSL' in version_string

version_match = re.search('\\b(\\d\\.\\d\\.\\d[a-z]*)\\b', version_string)
version_match = re.search('\\b(\\d\\.\\d\\.\\d+[a-z]*)\\b', version_string)
if not version_match:
version_match = re.search('(?<=LibreSSL )(\\d\\.\\d(\\.\\d)?)\\b', version_string)
if not version_match:
Expand Down

0 comments on commit 1103b2a

Please sign in to comment.