1
0
mirror of https://github.com/simple-icons/simple-icons.git synced 2024-11-26 01:00:27 +02:00

Fix color normalizer in add-icon-data script (#9613)

This commit is contained in:
LitoMore 2023-09-25 02:36:55 +08:00 committed by GitHub
parent 0304ead0ea
commit 88db73966f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View File

@ -60,7 +60,7 @@
"url": "https://opencollective.com/simple-icons"
},
"devDependencies": {
"@inquirer/prompts": "1.0.0",
"@inquirer/prompts": "3.1.1",
"chalk": "5.2.0",
"editorconfig-checker": "5.0.1",
"esbuild": "0.17.19",

View File

@ -58,7 +58,7 @@ const aliasesChoices = Object.entries(
const getIconDataFromAnswers = (answers) => ({
title: answers.title,
hex: answers.hex.toUpperCase(),
hex: normalizeColor(answers.hex),
source: answers.source,
...(answers.hasGuidelines ? { guidelines: answers.guidelines } : {}),
...(answers.hasLicense
@ -96,7 +96,6 @@ answers.title = await input({
answers.hex = await input({
message: 'Hex',
validate: hexValidator,
filter: (text) => normalizeColor(text),
transformer: hexTransformer,
});