Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/icons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorXhmikosR <xhmikosr@gmail.com>2020-12-23 02:32:12 +0300
committerGitHub <noreply@github.com>2020-12-23 02:32:12 +0300
commitb4daf3f2aa5be8ee88a0c6e3d717121a92eecce0 (patch)
treefadbe371b876c20bbc7df1a1e283acda5477023d /build
parent5ef2443cd990132cd342374dd2e5c49457e4a727 (diff)
build-svgs.js: no need to use a function in `replaceWith()` (#579)
Update build-svgs.js Co-authored-by: Mark Otto <markd.otto@gmail.com>
Diffstat (limited to 'build')
-rw-r--r--build/build-svgs.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/build/build-svgs.js b/build/build-svgs.js
index 2a09c5423..04525e2dd 100644
--- a/build/build-svgs.js
+++ b/build/build-svgs.js
@@ -48,7 +48,7 @@ const processFile = (file, config) => new Promise((resolve, reject) => {
const $ = cheerio.load(result.data)
const $svg = $('svg')
- $svg.replaceWith(() => $('<svg>').append($(this).html()))
+ $svg.replaceWith($('<svg>').append($(this).html()))
for (const [attribute, value] of Object.entries(svgAttributes)) {
$svg.removeAttr(attribute)