From 5af8a2168d5cbe43461affac1427041ed268811c Mon Sep 17 00:00:00 2001 From: Zack Rauen Date: Thu, 9 Aug 2018 11:31:11 -0400 Subject: [PATCH] fix class search --- client/src/ui/classnormaliser.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/ui/classnormaliser.js b/client/src/ui/classnormaliser.js index f8509bf4..52cf0bf7 100644 --- a/client/src/ui/classnormaliser.js +++ b/client/src/ui/classnormaliser.js @@ -29,8 +29,8 @@ export default class ClassNormaliser extends Module { shouldIgnore(value) { if (!isNaN(value)) return true; if (value.endsWith('px') || value.endsWith('ch') || value.endsWith('em') || value.endsWith('ms')) return true; - if (value.startsWith('rgba')) return true; - if (value.includes('calc(')) return true; + if (value.startsWith('#') && (value.length == 7 || value.length == 4)) return true; + if (value.includes('calc(') || value.includes('rgba')) return true; return false; }