Skip to content

Commit

Permalink
Merge pull request #18 from DDMAL/neume-line
Browse files Browse the repository at this point in the history
Optimize file type check
  • Loading branch information
yinanazhou committed Jun 25, 2024
2 parents 1442083 + a066d24 commit 00483a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NeonCore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ class NeonCore {
}
}).then(data => {
// Check if the MEI file is sb-based. If so, convert to staff-based.
if (!data.match(/.*section.*type="neon-neume-line".*/)) {
if (!/<section\b[^>]*\btype="neon-neume-line"[^>]*>/.test(data)) {
data = convertToVerovio(data);
}

Expand Down

0 comments on commit 00483a7

Please sign in to comment.