create_standardized_filename matches multiple files
Created by: williamschmitt21
create_standardized_filename can match multiple files when using the auto-number increment feature because the description search is non-exhaustive. That is, if there is a file RXX-sample_description-YYY_MM_DD-vX.X.X.csv
and RXX-sample-YYY_MM_DD-vX.X.X.csv
, and one attempts to provide a description of sample
it will return both of these filenames.
Solution: constrict the matching_description
variable to match a string that has -description-
instead of just description
.