From 10ae7c9fec50a5c857f2e61c7b610445c50b4048 Mon Sep 17 00:00:00 2001 From: Zaheer Ud Din Date: Sun, 5 Dec 2021 04:27:36 +0500 Subject: [PATCH] Strip quoted delims in file type magic 0x3C --- bits/75_xlml.js | 1 + 1 file changed, 1 insertion(+) diff --git a/bits/75_xlml.js b/bits/75_xlml.js index 2487ca7..3fdd98a 100644 --- a/bits/75_xlml.js +++ b/bits/75_xlml.js @@ -183,6 +183,7 @@ function parse_xlml_xml(d, _opts)/*:Workbook*/ { else str = utf8read(str); } var opening = str.slice(0, 1024).toLowerCase(), ishtml = false; + opening = opening.replace(/".*?"/g, ""); if((opening.indexOf(">") & 1023) > Math.min((opening.indexOf(",") & 1023), (opening.indexOf(";")&1023))) { var _o = dup(opts); _o.type = "string"; return PRN.to_workbook(str, _o); } if(opening.indexOf("= 0) ishtml = true; }); if(ishtml) return HTML_.to_workbook(str, opts);