Updated the validation in MultipleTrialDesignExcelFormat.pm to use string comparison in a grep command instead of regex.
Failure was happening because synonym had square brackets and a "range" defined (ex: [PROG-1]), and the original code was interpreting that as a regex range (expecting something like [a-z])
Checklist
[ ] Refactoring only
[ ] Documentation only
[ ] Fixture update only
[x] Bug fix
[ ] The relevant issue has been closed.
[ ] Further work is required.
[ ] New feature
[ ] Relevant tests have been created and run.
[ ] Data was added to the fixture
[ ] Data was added via a patch in /t/data/fixture/patches/.
[ ] User-Facing Change
[ ] The user manual in /docs has been updated.
[ ] Any new Perl has been documented using perldoc.
[ ] Any new JavaScript has been documented using JSDoc.
[ ] Any new legacy JavaScript has been moved from /js to /js/source/legacy.
Description
Updated the validation in
MultipleTrialDesignExcelFormat.pm
to use string comparison in agrep
command instead of regex.Failure was happening because synonym had square brackets and a "range" defined (ex:
[PROG-1]
), and the original code was interpreting that as a regex range (expecting something like[a-z]
)Checklist
/t/data/fixture/patches/
./docs
has been updated./js
to/js/source/legacy
.