diff --git a/.svglintrc.js b/.svglintrc.js index 50516bbe8..488df0bff 100644 --- a/.svglintrc.js +++ b/.svglintrc.js @@ -8,7 +8,7 @@ const svgPathBbox = require('svg-path-bbox'); const parsePath = require('svg-path-segments'); const svgRegexp = - /^.*<\/title><path d=".*"\/><\/svg>\r?\n?$/; + /^<svg( [^\s]*=".*"){3}><title>.*<\/title><path d=".*"\/><\/svg>\n?$/; const negativeZerosRegexp = /-0(?=[^\.]|[\s\d\w]|$)/g; const iconSize = 24; diff --git a/package.json b/package.json index 3e88b103c..dabd95fd4 100644 --- a/package.json +++ b/package.json @@ -57,7 +57,7 @@ "jslint": "prettier --check .", "jsonlint": "node scripts/lint/jsonlint.js", "svglint": "svglint icons/*.svg --ci", - "wslint": "editorconfig-checker -exclude \\.svg$", + "wslint": "editorconfig-checker", "prepare": "is-ci || husky install", "prepublishOnly": "npm run build", "postpublish": "npm run clean",