mirror of
https://github.com/tiennm99/github-readme-stats.git
synced 2026-07-16 16:17:04 +00:00
ci(theme preview): allow gradient themes (#3400)
This commit is contained in:
+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