From: tcofoegbu Date: Mon, 15 May 2017 14:52:56 +0000 (+0100) Subject: JAL-2533 improvement to prune off file extension when imported seqs are named with... X-Git-Tag: Release_2_10_2~3^2~57^2~5 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=705db65374af9295e31e695ae0643b17423fa382;p=jalview.git JAL-2533 improvement to prune off file extension when imported seqs are named with the data file --- diff --git a/src/jalview/io/StructureFile.java b/src/jalview/io/StructureFile.java index 7fe17c8..5ff1a02 100644 --- a/src/jalview/io/StructureFile.java +++ b/src/jalview/io/StructureFile.java @@ -415,6 +415,9 @@ public abstract class StructureFile extends AlignFile { dataName = dataName.substring(p + 1); } + if(dataName.indexOf(".") > -1){ + dataName = dataName.substring(0, dataName.lastIndexOf(".")); + } return dataName; }