From 1d1ce8951b2a4026c4bd16e9debc8031e69b0fa6 Mon Sep 17 00:00:00 2001 From: Mikhail Atuchin Date: Tue, 19 Nov 2024 16:45:57 +0700 Subject: [PATCH] revert filename comparation --- src/seed_tools/utils/study_validation.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}_)`,