diff --git a/package.json b/package.json index a06b474..23f63b2 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "version": "0.13.1", + "version": "0.13.2", "license": "MIT", "main": "dist/index.js", "typings": "dist/index.d.ts", diff --git a/src/store.ts b/src/store.ts index 3daafd7..67d1b0c 100644 --- a/src/store.ts +++ b/src/store.ts @@ -577,7 +577,7 @@ function generateSchema(data: any[]) { try { if (typeof value === 'string') { const color = rgb(value); - return !!color; + return !!color && !Number.isNaN(color.r); } return false; } catch (e) {