1
0
mirror of https://github.com/simple-icons/simple-icons.git synced 2025-02-14 02:00:11 +02:00

Fix error in 'icon-precision' lint rule (#5842)

This commit is contained in:
Álvaro Mondéjar 2021-06-03 12:12:39 +02:00 committed by GitHub
parent d94e08d8c3
commit 797a34a2d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -177,7 +177,7 @@ module.exports = {
if (precisionMax > iconMaxFloatPrecision) {
let errorMsg = `found ${precisionMax} decimals in segment "${iconPath.substring(segment.start, segment.end)}"`;
if (segment.chained) {
let readableChain = iconPath.substring(segment.chainStart, chainEnd);
let readableChain = iconPath.substring(segment.chainStart, segment.chainEnd);
if (readableChain.length > 20) {
readableChain = `${readableChain.substring(0, 20)}...`;
}