diff --git a/src/NeonCore.ts b/src/NeonCore.ts index d783e9c9..090a6f64 100644 --- a/src/NeonCore.ts +++ b/src/NeonCore.ts @@ -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 (!/]*\btype="neon-neume-line"[^>]*>/.test(data)) { data = convertToVerovio(data); }