Skip to content

Commit

Permalink
fix: support transparent color
Browse files Browse the repository at this point in the history
  • Loading branch information
yarastqt committed Jun 20, 2020
1 parent 4b5ad6e commit 9cc89b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export function getPlatformFromFilePath(filePath: string): Platforms {
}

export function isColor(value: string | number): boolean {
return /^[#|rgba?|hsla?||color]/.test(String(value))
return /^[#|rgba?|hsla?|color|transparent]/.test(String(value))
}

export function throttle<T extends []>(
Expand Down

0 comments on commit 9cc89b9

Please sign in to comment.