fix class search

This commit is contained in:
Zack Rauen 2018-08-09 11:31:11 -04:00
parent 5a603a084f
commit 5af8a2168d
1 changed files with 2 additions and 2 deletions

View File

@ -29,8 +29,8 @@ export default class ClassNormaliser extends Module {
shouldIgnore(value) { shouldIgnore(value) {
if (!isNaN(value)) return true; if (!isNaN(value)) return true;
if (value.endsWith('px') || value.endsWith('ch') || value.endsWith('em') || value.endsWith('ms')) 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.startsWith('#') && (value.length == 7 || value.length == 4)) return true;
if (value.includes('calc(')) return true; if (value.includes('calc(') || value.includes('rgba')) return true;
return false; return false;
} }