diff --git a/.svglintrc.js b/.svglintrc.js index 6b2485656..a09b39112 100644 --- a/.svglintrc.js +++ b/.svglintrc.js @@ -3,7 +3,7 @@ const { htmlFriendlyToTitle } = require("./scripts/utils.js"); const getBounds = require("svg-path-bounding-box"); const titleRegexp = /(.+) icon$/; -const svgRegexp = /^\r?\n?$/; +const svgRegexp = /^.*<\/title><path d=".*"\/><\/svg>\r?\n?$/; const iconSize = 24; const iconFloatPrecision = 3; @@ -77,7 +77,7 @@ module.exports = { const rawSVG = $.html(); if (!svgRegexp.test(rawSVG)) { - reporter.error("Unexpected character(s) detected outside the opening and/or closing <svg> tags"); + reporter.error("Unexpected character(s), most likely extraneous whitespace, detected in SVG markup"); } }, ] diff --git a/icons/ardour.svg b/icons/ardour.svg index d6af113dc..5995b1af0 100644 --- a/icons/ardour.svg +++ b/icons/ardour.svg @@ -1 +1 @@ -<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" ><title>Ardour icon \ No newline at end of file +Ardour icon \ No newline at end of file diff --git a/icons/celery.svg b/icons/celery.svg index 91e3af812..2352db42b 100644 --- a/icons/celery.svg +++ b/icons/celery.svg @@ -1 +1 @@ -Celery icon \ No newline at end of file +Celery icon \ No newline at end of file diff --git a/icons/centos.svg b/icons/centos.svg index 9253069ee..4d9942685 100644 --- a/icons/centos.svg +++ b/icons/centos.svg @@ -1 +1 @@ -CentOS icon \ No newline at end of file +CentOS icon \ No newline at end of file diff --git a/icons/cloudsmith.svg b/icons/cloudsmith.svg index 683caade7..7f23b16b3 100644 --- a/icons/cloudsmith.svg +++ b/icons/cloudsmith.svg @@ -1 +1 @@ -Cloudsmith icon +Cloudsmith icon diff --git a/icons/deepin.svg b/icons/deepin.svg index eea4cf9a1..9acf92a0c 100644 --- a/icons/deepin.svg +++ b/icons/deepin.svg @@ -1 +1 @@ -deepin icon \ No newline at end of file +deepin icon \ No newline at end of file diff --git a/icons/jetbrains.svg b/icons/jetbrains.svg index a3bd661e6..b41299550 100644 --- a/icons/jetbrains.svg +++ b/icons/jetbrains.svg @@ -1 +1 @@ -JetBrains icon +JetBrains icon diff --git a/icons/ktm.svg b/icons/ktm.svg index b2446f1cc..8c461158d 100644 --- a/icons/ktm.svg +++ b/icons/ktm.svg @@ -1 +1 @@ -KTM icon +KTM icon diff --git a/icons/ublockorigin.svg b/icons/ublockorigin.svg index 0cf35f73b..2f4e79d43 100644 --- a/icons/ublockorigin.svg +++ b/icons/ublockorigin.svg @@ -1 +1 @@ -uBlock Origin icon \ No newline at end of file +uBlock Origin icon \ No newline at end of file