Skip to content

Commit

Permalink
Merge pull request #56 from vgteam/gaf
Browse files Browse the repository at this point in the history
Fix GAF parsing bug
  • Loading branch information
glennhickey authored Apr 29, 2022
2 parents 13d640b + b390d7f commit eb1fe76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/vg/io/gafkluge.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ inline void parse_gaf_record(const std::string& gaf_line, GafRecord& gaf_record)
GafStep step;
pos = buffer.find_first_of("><", pos);
next = buffer.find_first_of("><", pos + 1);
std::string step_token = buffer.substr(pos, next != std::string::npos ? next - pos + 1 : std::string::npos);
std::string step_token = buffer.substr(pos, next != std::string::npos ? next - pos : std::string::npos);
size_t colon = step_token.find_first_of(':');
step.is_reverse = step_token[0] == '<';
if (colon == std::string::npos) {
Expand Down

0 comments on commit eb1fe76

Please sign in to comment.