diff --git a/src/seed_tools/utils/study_validation.ts b/src/seed_tools/utils/study_validation.ts index 7368d148..8f27905d 100644 --- a/src/seed_tools/utils/study_validation.ts +++ b/src/seed_tools/utils/study_validation.ts @@ -44,7 +44,7 @@ function checkName(study: Study, fileBaseName: string): string[] { if ( study.name !== fileBaseName && - !fileBaseName.startsWith(`${study.name}_`) + !study.name.startsWith(`${fileBaseName}_`) ) { errors.push( `Study name ${study.name} does not match file name (expected ${fileBaseName} or ${fileBaseName}_)`,