Skip to content

Commit

Permalink
be laxer with model name check
Browse files Browse the repository at this point in the history
  • Loading branch information
sbfnk committed Jul 18, 2023
1 parent c88abe4 commit babe463
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/validate_model.R
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ validate_model <- function(
identical(
model_name,
gsub(
"^\\d{4}\\-\\d{2}\\-\\d{2}-([a-zA-Z0-9_]+-[a-zA-Z0-9_]+)(-[A-Z]{2})?(-[[:alpha:]]+)?\\.csv(\\.gz)?$", "\\1", # nolint
"^\\d{4}\\-\\d{2}\\-\\d{2}-([a-zA-Z0-9_]+-[a-zA-Z0-9_]+).*$",
"\\1",
fs::path_file(file)
)
),
Expand Down

0 comments on commit babe463

Please sign in to comment.