mirror of
https://github.com/tiennm99/github-readme-stats.git
synced 2026-05-24 12:25:50 +00:00
ci(theme preview): allow gradient themes (#3400)
This commit is contained in:
committed by
GitHub
parent
edeebeb436
commit
f8aa2db39d
+1
-1
@@ -245,7 +245,7 @@ const clampValue = (number, min, max) => {
|
||||
* @returns {boolean} True if the given string is a valid gradient.
|
||||
*/
|
||||
const isValidGradient = (colors) => {
|
||||
return isValidHexColor(colors[1]) && isValidHexColor(colors[2]);
|
||||
return colors.slice(1).every((color) => isValidHexColor(color));
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user