Skip to content

Commit

Permalink
Fixing std++11 regex in PAE tie parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
lpugin committed Jul 11, 2017
1 parent 4735cb0 commit 2a42072
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/iopae.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1166,7 +1166,7 @@ int PaeInput::getNote(const char *incipit, pae::Note *note, pae::Measure *measur
}

// tie
if (regex_search(incipit + i + 1, std::regex("^[A-G]*\\+"))) {
if (regex_search(incipit + i + 1, std::regex("^[^A-G]*\\+"))) {
// reset 1 for first note, >1 for next ones is incremented under
if (note->tie == 0) note->tie = 1;
}
Expand Down

0 comments on commit 2a42072

Please sign in to comment.