Skip to content

Commit 4d1b305

Browse files
committed
case insensitive comparison of chem comp type
1 parent f2797c8 commit 4d1b305

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • biojava-structure/src/main/java/org/biojava/nbio/structure/io/mmcif/chem

biojava-structure/src/main/java/org/biojava/nbio/structure/io/mmcif/chem/ResidueType.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,9 @@ public static ResidueType getResidueTypeFromString(String chem_comp_type)
140140
{
141141
return rt;
142142
}
143-
if ( rt.chem_comp_type.startsWith(chem_comp_type))
143+
if ( rt.chem_comp_type.toLowerCase().startsWith(chem_comp_type.toLowerCase()))
144144
return rt;
145-
if ( chem_comp_type.startsWith(rt.chem_comp_type))
145+
if ( chem_comp_type.toLowerCase().startsWith(rt.chem_comp_type.toLowerCase()))
146146
return rt;
147147
}
148148
return null;

0 commit comments

Comments
 (0)