Breeding-Insight / sgn

The code behind the Sol Genomics Network, Cassavabase and BreeDBase websites
https://solgenomics.net
MIT License
2 stars 0 forks source link

BI-1649 - BreedBase fails on uploading a trial file where synonyms have square brackets ([..]) in the name #88

Closed timparsons closed 1 year ago

timparsons commented 2 years ago

Description

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