Skip to content

Commit 184757a

Browse files
Merge 25.11 to develop
2 parents b050cee + 60d028a commit 184757a

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

assay/src/org/labkey/assay/plate/AssayPlateMetadataServiceImpl.java

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@
9696
import org.labkey.api.util.logging.LogHelper;
9797
import org.labkey.api.view.ActionURL;
9898
import org.labkey.assay.TSVProtocolSchema;
99-
import org.labkey.assay.plate.data.WellData;
10099
import org.labkey.assay.plate.model.WellBean;
101100
import org.labkey.assay.plate.query.PlateSchema;
102101
import org.labkey.assay.plate.query.PlateTable;
@@ -706,13 +705,13 @@ public PlateGridInfo(PlateUtils.GridInfo info, PlateSet plateSet, Set<String> me
706705

707706
private @Nullable String getPrefixedValue(String annotation, String prefix)
708707
{
709-
if (annotation != null && annotation.trim().toLowerCase().startsWith(prefix))
708+
if (annotation != null)
710709
{
711-
String[] parts = annotation.split(":");
712-
if (parts.length > 1)
710+
// Issue 52782: measure name may contain a colon
711+
String[] parts = annotation.split(":", 2);
712+
if (parts.length == 2 && parts[0].trim().equalsIgnoreCase(prefix))
713713
{
714-
// Issue 52782: measure name may contain a colon, so we need to join the rest of the parts
715-
return StringUtils.join(parts, ":", 1, parts.length).trim();
714+
return parts[1].trim();
716715
}
717716
}
718717
return null;

0 commit comments

Comments
 (0)