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:
parent
d94e08d8c3
commit
797a34a2d7
@ -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)}...`;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user