Skip to content

Commit

Permalink
fixed bug between relative path and baseNameId
Browse files Browse the repository at this point in the history
  • Loading branch information
rbossy committed Jul 6, 2017
1 parent 5c2a8c2 commit e339cd7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ private void processFile(Corpus corpus, BufferedReader r) throws IOException {
if (baseNameId) {
int slash = name.lastIndexOf(File.separatorChar) + 1;
int dot = name.lastIndexOf('.');
if (dot == -1)
if (dot == -1 || dot < slash)
dot = name.length();
name = name.substring(slash, dot);
}
Expand Down

0 comments on commit e339cd7

Please sign in to comment.