From 908a5a95f90802af578543482748c1b0bddc8bc6 Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Fri, 17 Jan 2020 11:38:35 +0700 Subject: [PATCH] Meta tweaks --- package.json | 1 + readme.md | 4 ---- test.js | 6 +++--- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index eb94634..359a36a 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,7 @@ "description": "Check if a string or buffer is SVG", "license": "MIT", "repository": "sindresorhus/is-svg", + "funding": "https://github.com/sponsors/sindresorhus", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", diff --git a/readme.md b/readme.md index 96b16fe..58fb5a2 100644 --- a/readme.md +++ b/readme.md @@ -2,14 +2,12 @@ > Check if a string or buffer is [SVG](https://en.wikipedia.org/wiki/Scalable_Vector_Graphics) - ## Install ``` $ npm install is-svg ``` - ## Usage ```js @@ -19,7 +17,6 @@ isSvg(''); //=> true ``` - ## Edge cases This module performs a quick-and-dirty check. It's fast, but in certain cases it will give incorrect results. @@ -28,7 +25,6 @@ This module performs a quick-and-dirty check. It's fast, but in certain cases it If you want to make certain that your SVG is *valid*, try parsing it with [libxmljs](https://github.com/polotek/libxmljs). - ---
diff --git a/test.js b/test.js index 22a6b7f..954f34e 100644 --- a/test.js +++ b/test.js @@ -56,9 +56,9 @@ test('support markup inside Entity tags', t => { t.true(isSvg(' "> ]>&Smile;')); t.true(isSvg(` - "> - "> + "> + "> ]>