mirror of
				https://github.com/Mibew/simple-icons.git
				synced 2025-10-31 18:41:07 +03:00 
			
		
		
		
	Fix color normalizer in add-icon-data script (#9613)
				
					
				
			This commit is contained in:
		
							parent
							
								
									0304ead0ea
								
							
						
					
					
						commit
						88db73966f
					
				| @ -60,7 +60,7 @@ | |||||||
|     "url": "https://opencollective.com/simple-icons" |     "url": "https://opencollective.com/simple-icons" | ||||||
|   }, |   }, | ||||||
|   "devDependencies": { |   "devDependencies": { | ||||||
|     "@inquirer/prompts": "1.0.0", |     "@inquirer/prompts": "3.1.1", | ||||||
|     "chalk": "5.2.0", |     "chalk": "5.2.0", | ||||||
|     "editorconfig-checker": "5.0.1", |     "editorconfig-checker": "5.0.1", | ||||||
|     "esbuild": "0.17.19", |     "esbuild": "0.17.19", | ||||||
|  | |||||||
| @ -58,7 +58,7 @@ const aliasesChoices = Object.entries( | |||||||
| 
 | 
 | ||||||
| const getIconDataFromAnswers = (answers) => ({ | const getIconDataFromAnswers = (answers) => ({ | ||||||
|   title: answers.title, |   title: answers.title, | ||||||
|   hex: answers.hex.toUpperCase(), |   hex: normalizeColor(answers.hex), | ||||||
|   source: answers.source, |   source: answers.source, | ||||||
|   ...(answers.hasGuidelines ? { guidelines: answers.guidelines } : {}), |   ...(answers.hasGuidelines ? { guidelines: answers.guidelines } : {}), | ||||||
|   ...(answers.hasLicense |   ...(answers.hasLicense | ||||||
| @ -96,7 +96,6 @@ answers.title = await input({ | |||||||
| answers.hex = await input({ | answers.hex = await input({ | ||||||
|   message: 'Hex', |   message: 'Hex', | ||||||
|   validate: hexValidator, |   validate: hexValidator, | ||||||
|   filter: (text) => normalizeColor(text), |  | ||||||
|   transformer: hexTransformer, |   transformer: hexTransformer, | ||||||
| }); | }); | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user