Skip to content

Commit

Permalink
* R/utils.R (get_log_clean_version): Handle unknown version.
Browse files Browse the repository at this point in the history
  • Loading branch information
MLopez-Ibanez committed Jan 11, 2025
1 parent 15c4c26 commit 1b3a53a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,9 @@ get_log_clean_version <- function(iraceResults)
if (is.null(log_version))
log_version <- iraceResults$irace.version
if (is.null(log_version))
return(package_version("0"))
return(package_version("0.0.0"))
if (log_version == "unknown") # This may happen during development.
return(package_version("1000.0.0"))
if (length(gregexpr("\\.", log_version)[[1L]]) > 3L
|| grepl("[a-z]", log_version))
log_version <- sub("\\.[^.]*$", "", log_version)
Expand Down

0 comments on commit 1b3a53a

Please sign in to comment.