Skip to content

Commit

Permalink
Merge pull request #1229 from DDMAL/firefox-fix
Browse files Browse the repository at this point in the history
fix: optimize file type check
  • Loading branch information
yinanazhou authored Jun 25, 2024
2 parents b860650 + f222671 commit a066d24
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 a066d24

Please sign in to comment.