mirror of
https://github.com/simple-icons/simple-icons.git
synced 2024-12-16 01:10:30 +02:00
Fix variable reference error in 'ineffective-segments' lint (#4585)
* Fix error in ineffective-segments lint * Update '.svglint-ignored.json'
This commit is contained in:
parent
7c04f7fb18
commit
5b0d1d3e49
@ -32,10 +32,11 @@
|
||||
"M16.433 12.329A16.188 16.188 0 0 1 22.118.009L17.684 0a16.2 16.2 0 0 0-4.776 11.374V24h3.525zm-8.869 0A16.174 16.174 0 0 0 1.882.009L6.319 0a16.238 16.238 0 0 1 4.773 11.374V24H7.564zm0 0Z": "Guangzhou Metro",
|
||||
"M14.323 0L9.677 4.631h7.393V12l4.647-4.631V0zm2.747 12v7.369H9.677L14.323 24h7.394v-7.369zm0 0L9.677 4.631V19.37zm-7.393 7.369L2.283 12v7.369zM2.283 12l7.394-7.369H2.283Z": "Kyocera",
|
||||
"M20.254 11.421a.81.81 0 00-.815.866.839.839 0 00.827.867.816.816 0 00.815-.867A.838.838 0 0020.254 11.421zM13.744 11.421a.81.81 0 00-.815.866.839.839 0 00.827.867.816.816 0 00.815-.867A.838.838 0 0013.744 11.421zM6.733 11.369a.786.786 0 00-.651.307.987.987 0 00-.171.736L7.388 11.8A.709.709 0 006.733 11.369z M0,8v8H24V8Zm5.006,5.827H2.227v-4h.857v3.224H5.006Zm1.817-.621a1.289,1.289,0,0,0,.884-.326l.534.411a2.025,2.025,0,0,1-1.431.588A1.594,1.594,0,1,1,6.717,10.7a1.543,1.543,0,0,1,1.216.5,1.671,1.671,0,0,1,.37.86l-2.162.9A.937.937,0,0,0,6.823,13.206Zm4.883.621h-.845V12.075a.679.679,0,0,0-.712-.651.66.66,0,0,0-.7.651v1.752H8.606V10.748h.846v.441h0a1.278,1.278,0,0,1,1-.493,1.185,1.185,0,0,1,1.25,1.222Zm1.984.052a1.593,1.593,0,1,1,1.66-1.592A1.6,1.6,0,0,1,13.69,13.879Zm2.8-.053-1.267-3.078h.966l.764,2.1.764-2.1h.966l-1.267,3.078Zm3.711.053a1.593,1.593,0,1,1,1.66-1.592A1.6,1.6,0,0,1,20.2,13.879Zm2-.418H22.06v.366h-.085v-.366h-.137v-.077H22.2Zm.541.366h-.082v-.315l-.137.213H22.51l-.136-.213v.315h-.082v-.443h.09l.134.21.134-.21h.088Z": "Lenovo",
|
||||
"M5.66 9.553V5.2542a6.7943 6.7943 0 00-4.0537 11.0861C3.9847 15.1881 5.648 12.5846 5.66 9.553zm1.1323 4.1148c-.4231 1.7523-1.6874 3.2496-3.2626 4.2448a6.7603 6.7603 0 003.2616.8332 6.7723 6.7723 0 003.2626-.8332c-1.5753-.9952-2.8386-2.4935-3.2616-4.2448zm5.185-6.1031a6.7903 6.7903 0 00-4.0528-2.3105V9.52c0 3.0446 1.6663 5.663 4.0517 6.8183a6.7673 6.7673 0 01-1.6073-4.3868 6.7553 6.7553 0 011.6083-4.3868zm0 0c1.0031 1.1832 1.6552 2.7145 1.6552 4.3878 0 1.6733-.652 3.2026-1.6553 4.3878l-.001-.001.001.001c2.3785-1.1512 4.0878-3.7557 4.0998-6.7873V5.2542a6.9013 6.9013 0 00-4.0998 2.3105zM18.3413 9.52c0 3.0456 1.6663 5.663 4.0528 6.8193a6.7933 6.7933 0 00-4.0528-11.084zm-1.1322 4.1478c-.423 1.7523-1.6873 3.2496-3.2626 4.2448a6.7603 6.7603 0 003.2616.8332 6.7723 6.7723 0 003.2626-.8332c-1.5743-.9952-2.8385-2.4935-3.2616-4.2448z": "Renren",
|
||||
"M20.89 15.311v1.164h1.983c.406 0 1.103-.315 1.127-1.196v-.45c0-.752-.582-1.196-1.127-1.196h-.989v-.54h1.959v-1.17h-1.88c-.485 0-1.133.424-1.133 1.215v.405c0 .79.642 1.196 1.133 1.196 1.364.006-.327 0 .934 0v.566zm-10.62-.283s1.06-.096 1.06-1.55c0-1.452-1.285-1.587-1.285-1.587H7.729v4.584h1.164v-1.106L9.9 16.475h1.722zm-.45-.938h-.927v-1.048h.934s.26.102.26.52c0 .418-.266.528-.266.528zm4.384-2.167H13.02c-.842 0-1.127.81-1.127 1.196v3.356h1.182v-.804h1.11v.804h1.145v-3.356c0-.978-.836-1.196-1.127-1.196zm-.019 2.45H13.07V13.26s0-.25.37-.25h.406c.327 0 .333.25.333.25v1.112zm1.686-2.45h1.23v4.552h-1.23zm2.958 3.375v-3.375h-1.224v4.552h2.88v-1.177zM.424 16.475h4.79s-.916-4.43 2.115-6.224c.66-.34 2.764-1.614 6.208 1.087.109-.097.212-.174.212-.174S10.597 7.827 7.086 8.2c-1.764.167-3.934 1.871-5.207 4.122C.606 14.572.424 16.474.424 16.474zm0 0h4.79s-.916-4.43 2.115-6.224c.66-.34 2.764-1.614 6.208 1.087.109-.097.212-.174.212-.174S10.597 7.827 7.086 8.2c-1.764.167-3.934 1.871-5.207 4.122C.606 14.572.424 16.474.424 16.474zm0 0h4.79s-.916-4.43 2.115-6.224c.66-.34 2.764-1.614 6.208 1.087.109-.097.212-.174.212-.174S10.597 7.827 7.086 8.2c-1.77.167-3.94 1.871-5.213 4.122C.6 14.572.424 16.474.424 16.474zm9.979-7.915l.024-.43c-.055-.033-.206-.11-.588-.226l-.024.425c.2.07.394.148.588.231zm-.576 1.363l-.025.405c.2.007.4.033.6.078l.025-.4a4.06 4.06 0 00-.6-.083zM7.584 7.917h.06l-.121-.392a4.57 4.57 0 00-.582.039l.115.379c.176-.02.352-.026.528-.026zm.29 2.366l.14.444c.176-.09.352-.167.527-.225l-.133-.424a4.24 4.24 0 00-.533.205zm-2.752-1.69l-.272-.444a9.49 9.49 0 00-.473.276l.279.45c.157-.103.309-.2.466-.283zm1.243 2.893l.291.463c.103-.161.224-.31.358-.457l-.273-.437a3.487 3.487 0 00-.376.43zm-.879 2.07l.491.411a5.417 5.417 0 01.127-.752l-.436-.366a6.41 6.41 0 00-.182.707zm-2.655-3.054l-.43-.399c-.158.161-.31.322-.45.482l.468.425a6.423 6.423 0 01.412-.508zM1 13.376l-.697-.27a17.22 17.22 0 00-.303.771l.697.27c.079-.218.206-.533.303-.771zm4.395 1.813c.012.34.043.617.073.81l.727.277a8.962 8.962 0 01-.145-.836z": "Ruby on Rails",
|
||||
"M11.344.006c-.292.01-.586.028-.881.06C.37 1.154 3.963 16.69 4.492 18.205.527 9.78 2.859 4.5 4.61 2.712c.049-.05-.004-.136-.05-.095C.604 5.824.25 9.45.25 9.45c-.684 3.952 3.158 7.834 4.246 8.766-2.967-2-3.841-3.436-4.382-5.417-.016-.06-.118-.08-.113 0 .081 1.064.185 2.49 1.005 4.174.752.973 2.815 1.247 3.49 1.246h.003l-.003-.006c.883-3.249 2.674-8.92 5.495-12.74 2.728-3.538 4.83-4.65 5.403-4.905.048-.023.025-.077-.03-.114-.128-.082-1.979-.513-4.02-.448zM4.498 18.22c.715 1.21 2.93 4.546 6.976 5.7 1.382.277 5.618-.02 8.602-3.011.054-.053.007-.175-.106-.099-1.97 1.344-8.14 2.682-15.472-2.59zm0 0l-.003.002c-1.053.447-2.22.28-2.73.044-.065-.031-.125-.02-.09.044.748 1.264 1.166 1.7 2.11 2.545.051.053.104.04.08-.064-.01-.046-.189-1.342.63-2.565-.105.822-.206 3.105.692 3.711 1.058.722 2.147 1.414 4.084 1.829.076.018.145-.071.071-.11-3.166-1.546-3.912-3.474-4.845-5.433l.001-.003zM17.613 1.398c-.226.026-.462.215-1.016.552C9.973 6.36 5.058 17.035 4.498 18.216c0 0 11.07-2.39 17.856-9.29 1.06-1.085 1.138-.85.64-2.054-.239-.597-.866-1.813-1.95-3.036-.854-.955-1.97-1.703-2.466-2.01-.52-.316-.738-.454-.965-.428zM4.498 18.216c1.363.78 16.116 7.064 18.959-2.725.665-2.284.576-4.675.468-4.964-.022-.062-.073-.034-.076-.014-.35.516-1.828 2.42-5.78 4.495-4.242 2.111-10.229 2.906-13.57 3.208z": "Sat.1",
|
||||
"M11.3437.0066c-.292.01-.586.028-.881.06-10.092 1.088-6.4994 16.6226-5.9704 18.1375-3.9647-8.4243-1.6329-13.7038.118-15.4917.049-.05-.004-.136-.05-.095C.6046 5.8241.2506 9.4498.2506 9.4498c-.684 3.9517 3.1578 7.8334 4.2457 8.7653C1.5295 16.2152.6556 14.7794.1146 12.7985c-.016-.06-.118-.08-.113 0 .081 1.064.185 2.4898 1.005 4.1737.7519.9729 2.8147 1.2469 3.4897 1.2459h.003l-.003-.006C5.3792 14.9634 7.17 9.2928 9.9908 5.473 12.7185 1.9356 14.8204.8237 15.3933.5687c.048-.023.025-.077-.03-.114-.128-.082-1.9788-.513-4.0196-.448zM4.4983 18.2191c.7149 1.2099 2.9297 4.5456 6.9754 5.6995 1.3818.277 5.6175-.02 8.6012-3.0108.054-.053.007-.175-.106-.099-1.9698 1.344-8.1393 2.6818-15.4706-2.5897zm0 0l-.003.002c-1.053.447-2.2199.28-2.7298.044-.065-.031-.125-.02-.09.044.748 1.2639 1.1659 1.6998 2.1098 2.5448.051.053.104.04.08-.064-.01-.046-.189-1.342.63-2.5648-.105.822-.206 3.1047.6919 3.7107 1.0579.7219 2.1468 1.4138 4.0836 1.8288.076.018.145-.071.071-.11-3.1657-1.5458-3.9116-3.4737-4.8445-5.4325zM17.612 1.3985c-.226.026-.462.215-1.0159.552C9.9728 6.36 5.0582 17.0342 4.4982 18.215c0 0 11.0691-2.3898 17.8545-9.2892 1.06-1.085 1.138-.85.64-2.0538-.239-.597-.866-1.8129-1.9499-3.0358-.8539-.9549-1.9698-1.7028-2.4658-2.0098-.52-.316-.7379-.454-.9649-.428zM4.4983 18.2151c1.3628.78 16.1146 7.0634 18.9573-2.7248.665-2.2838.576-4.6746.468-4.9636-.022-.062-.073-.034-.076-.014-.35.516-1.8279 2.4198-5.7795 4.4947C13.8265 17.1182 7.84 17.913 4.4993 18.215z": "Sat.1",
|
||||
"M12 1.25l6.75 6.637V2L12 1.25zm0 0l-6.05 7h12.1l-6.05-7zm0 0L5.25 2v5.887L12 1.25zM5.25 2L0 9l4.416-.68L5.25 2zM0 9l11.959 13.703.008-.014L4.443 9H0zm18.75-7l.834 6.32L24 9l-5.25-7zM24 9h-4.506l-7.523 13.69.029.06L24 9zM12 22.75l-.031-.057-.008.012.039.045zM5.436 9l6.533 13.686L18.564 9H5.436Z": "Sketch",
|
||||
"M17.805 3.852s.34 1.441-.746 1.64c-.754.133-1.973-.617-2.586-1.363-.758-.922-.66-1.649-.075-2.29.883-.98 2.399-.6 2.399-.6s-2.774-2.43-5.66-.438c-2.57 1.77-1.832 4.18.488 6.285 2.09 1.902.422 3.988-1.688 3.719-1.44-.184-2.03-1.344-1.687-2.055.3-.61 1.336-.984 1.336-.984s-1.191-.48-2.59.046c-1.262.473-2.297 1.512-2.215 4.122v12.078s1.301-1.602 2.832-3.235c1.711-1.84 2.492-3.082 4.25-2.937 3.328.207 5.735-1.274 7.371-3.645 3.141-4.562.68-9.66-1.43-10.343zm0 0": "SparkFun",
|
||||
"M17.0532 3.8362s.34 1.4413-.7462 1.6403c-.7541.133-1.9733-.6171-2.5864-1.3632-.7582-.9222-.6602-1.6493-.075-2.2905.8831-.9802 2.3994-.6 2.3994-.6s-2.7745-2.4305-5.661-.4382c-2.5706 1.7704-1.8324 4.1808.488 6.2862 2.0904 1.9024.4221 3.9888-1.6883 3.7197-1.4403-.184-2.0304-1.3442-1.6873-2.0554.3-.61 1.3362-.9842 1.3362-.9842s-1.1912-.48-2.5905.046C4.98 8.27 3.9447 9.3093 4.0267 11.9198V24s1.3013-1.6023 2.8326-3.2356c1.7113-1.8404 2.4924-3.0826 4.2508-2.9376 3.3286.207 5.736-1.2742 7.3723-3.6456 3.1416-4.5629.6802-9.6619-1.4302-10.345zm0 0": "SparkFun",
|
||||
"M12,17.964l5.214-1.321l2.179,6.714L12,17.964z M24,9.286h-9.179L12,0.643L9.179,9.286 H0l7.429,5.357l-2.821,8.643l7.429-5.357l4.571-3.286L24,9.286L24,9.286L24,9.286L24,9.286z": "Trustpilot",
|
||||
"M7.66 11.398v.742c0 .105-.11.105-.11.105h-.847s-.11 0-.11.11v4.03c0 .11-.105.11-.105.11h-.855c-.106 0-.106-.11-.106-.11v-4.03s0-.11-.109-.11h-.844c-.105 0-.105-.105-.105-.105v-.742c0-.106.105-.106.105-.106H7.66v.106m15.458-7.52H12.301c-.68 0-.836.16-.836.816v2.414c0 .493 0 .493-.492.493H.813C.137 7.6 0 7.737 0 8.425v5.41c0 1.754 0 3.508.023 5.266 0 .922.102 1.02 1.04 1.02H9.89c.664 0 1.32.01 1.984-.01.48-.006.669-.202.669-.682v-2.56c0-.468 0-.468.469-.468h10.195c.633 0 .793-.152.793-.78V4.736c0-.7-.164-.86-.883-.86zm-11.64 14.625c0 .5-.013.5-.525.5-3.148 0-6.293 0-9.445.008-.32 0-.43-.078-.43-.418.016-3.16.008-6.324 0-9.48-.008-.34.086-.446.442-.446 3.187.012 6.363.008 9.55.008.117 0 .23.015.4.023 0 .18 0 .32.01.442-.003 3.113-.003 6.242-.003 9.363zm7.69-5.844c0 .102-.104.102-.104.102h-2.57c-.106 0-.106-.102-.106-.102v-.72c0-.1.105-.1.105-.1h.617s.102 0 .102-.102V8.659s0-.101-.102-.101h-.515c-.102 0-.102-.102-.102-.102v-.82c0-.106.102-.106.102-.106h2.367c.102 0 .102.106.102.106v.715c0 .105-.102.105-.102.105h-.516s-.101 0-.101.102v3.074s0 .105.1.105h.618c.106 0 .106.102.106.102zm0 0": "TuneIn",
|
||||
"M21.463,8.653c-0.627,0-1.211,0.511-1.297,1.135l-0.637,4.647c-0.07,0.506-0.313,0.945-0.727,1.317 c-0.415,0.372-0.882,0.558-1.4,0.558c-0.504,0-0.913-0.182-1.224-0.547c-0.313-0.365-0.433-0.808-0.361-1.329l0.385-2.82 c0.012-0.563-0.411-1.003-0.993-1.003h-1.525c-0.582,0-1.127,0.44-1.27,1.003l-0.397,2.82c-0.072,0.521-0.315,0.964-0.729,1.329 c-0.414,0.365-0.872,0.547-1.376,0.547c-0.504,0-0.915-0.186-1.234-0.558c-0.319-0.372-0.443-0.811-0.373-1.317l0.854-6.166 c0.091-0.6-0.265-1.228-0.808-1.482c0,0-6.43-2.68-6.849-2.853C1.077,3.76,0.596,4.15,0.432,4.8L0.039,6.351 C-0.126,7,0.246,7.739,0.863,7.992l4.31,1.784l-0.646,4.659c-0.217,1.563,0.15,2.899,1.1,4.008c0.95,1.11,2.203,1.664,3.76,1.664 c1.437,0,2.748-0.483,3.934-1.451c0.947,0.968,2.133,1.451,3.555,1.451c1.556,0,2.962-0.554,4.22-1.664 c1.257-1.109,1.995-2.446,2.211-4.008c0,0,0.675-4.917,0.688-5.003c0.059-0.429-0.406-0.779-1.032-0.779L21.463,8.653L21.463,8.653 z": "Wish",
|
||||
|
@ -177,9 +177,8 @@ module.exports = {
|
||||
return;
|
||||
}
|
||||
|
||||
const parsedPath = svgPath(iconPath);
|
||||
const { segments } = parsedPath;
|
||||
const { segments: absSegments } = parsedPath.abs().unshort();
|
||||
const { segments } = svgPath(iconPath);
|
||||
const { segments: absSegments } = svgPath(iconPath).abs().unshort();
|
||||
|
||||
const lowerMovementCommands = ['m', 'l'];
|
||||
const lowerDirectionCommands = ['h', 'v'];
|
||||
|
Loading…
Reference in New Issue
Block a user