Skip to content

Commit

Permalink
Fixes regex for version parsing (#5312)
Browse files Browse the repository at this point in the history
  • Loading branch information
acpaquette authored Nov 14, 2023
1 parent 6764514 commit e5f7cbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion isis/cmake/Utilities.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ function(get_os_version text)
ERROR_VARIABLE result)

# Format the string
string(REGEX MATCH "[0-9]+.[0-9]+.[0-9]+" version "${result}")
string(REGEX MATCH "[0-9]+\.[0-9]+\.?[0-9]*" version "${result}")
string(REGEX MATCH "^[0-9]+.[0-9]+" version "${version}")
string(REPLACE "." "_" version "${version}")

Expand Down

0 comments on commit e5f7cbd

Please sign in to comment.