mirror of
				https://github.com/Mibew/simple-icons.git
				synced 2025-10-31 10:31:06 +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" | ||||
|   }, | ||||
|   "devDependencies": { | ||||
|     "@inquirer/prompts": "1.0.0", | ||||
|     "@inquirer/prompts": "3.1.1", | ||||
|     "chalk": "5.2.0", | ||||
|     "editorconfig-checker": "5.0.1", | ||||
|     "esbuild": "0.17.19", | ||||
|  | ||||
| @ -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, | ||||
| }); | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user