Skip to content

Commit

Permalink
find accession version in longer file paths
Browse files Browse the repository at this point in the history
  • Loading branch information
Funatiq committed Jun 15, 2018
1 parent 93fff67 commit 4fdcc11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sequence_io.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ extract_ncbi_accession_version_number(const string& prefix,
if(text.empty()) return "";

auto i = text.find(prefix);
if(i < 20) {
if(i < string::npos) {
//find separator *after* prefix
auto s = text.find('.', i+1);
if(s == string::npos || (s-i) > 20) return "";
Expand Down

0 comments on commit 4fdcc11

Please sign in to comment.