mirror of
https://github.com/simple-icons/simple-icons.git
synced 2024-12-16 01:10:30 +02:00
Avoid CRLF in SVGs (#6880)
This commit is contained in:
parent
53de0ff00c
commit
1fc838517a
@ -8,7 +8,7 @@ const svgPathBbox = require('svg-path-bbox');
|
|||||||
const parsePath = require('svg-path-segments');
|
const parsePath = require('svg-path-segments');
|
||||||
|
|
||||||
const svgRegexp =
|
const svgRegexp =
|
||||||
/^<svg( [^\s]*=".*"){3}><title>.*<\/title><path d=".*"\/><\/svg>\r?\n?$/;
|
/^<svg( [^\s]*=".*"){3}><title>.*<\/title><path d=".*"\/><\/svg>\n?$/;
|
||||||
const negativeZerosRegexp = /-0(?=[^\.]|[\s\d\w]|$)/g;
|
const negativeZerosRegexp = /-0(?=[^\.]|[\s\d\w]|$)/g;
|
||||||
|
|
||||||
const iconSize = 24;
|
const iconSize = 24;
|
||||||
|
@ -57,7 +57,7 @@
|
|||||||
"jslint": "prettier --check .",
|
"jslint": "prettier --check .",
|
||||||
"jsonlint": "node scripts/lint/jsonlint.js",
|
"jsonlint": "node scripts/lint/jsonlint.js",
|
||||||
"svglint": "svglint icons/*.svg --ci",
|
"svglint": "svglint icons/*.svg --ci",
|
||||||
"wslint": "editorconfig-checker -exclude \\.svg$",
|
"wslint": "editorconfig-checker",
|
||||||
"prepare": "is-ci || husky install",
|
"prepare": "is-ci || husky install",
|
||||||
"prepublishOnly": "npm run build",
|
"prepublishOnly": "npm run build",
|
||||||
"postpublish": "npm run clean",
|
"postpublish": "npm run clean",
|
||||||
|
Loading…
Reference in New Issue
Block a user