Skip to content

Commit

Permalink
allow spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
sbfnk committed Jul 18, 2023
1 parent babe463 commit 5658461
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/validate_model_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ validate_model_data <- function(data_file, data_schema) {
validations <- c(validations, fhub_check(
data_file,
grepl(
"^\\d{4}\\-\\d{2}\\-\\d{2}-[a-zA-Z0-9_]+-[a-zA-Z0-9_]+(-[A-Z]{2})?(-[[:alpha:]]+)?\\.csv(\\.gz)?$",
"^\\d{4}\\-\\d{2}\\-\\d{2}-[a-zA-Z0-9_]+-[a-zA-Z0-9_]+(-[A-Z]{2})?(-[[:alpha:][:blank:]]+)?\\.csv(\\.gz)?$",
fs::path_file(data_file)
),
"Filename", "formed of a date, a model name, and optionally a country and/or target separated by an hyphen"
Expand Down

0 comments on commit 5658461

Please sign in to comment.