From 539eaa19da092ee27461bd00ff448f6e6d7e94ed Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Wed, 30 Jun 2021 00:43:32 +0700 Subject: [PATCH] Meta tweaks --- index.d.ts | 2 -- index.js | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/index.d.ts b/index.d.ts index a90cea8..611e066 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1,5 +1,3 @@ -/// - declare const isSvg: { /** Check if a string or buffer is [SVG](https://en.wikipedia.org/wiki/Scalable_Vector_Graphics). diff --git a/index.js b/index.js index 7a610f4..c3b7873 100644 --- a/index.js +++ b/index.js @@ -6,6 +6,7 @@ const isSvg = input => { return false; } + // TODO: Remove the `.replace` call when using `fast-xml-parser@4` which has fixed the bug. input = input.toString().trim().replace(/\n/g, ' '); if (input.length === 0) {