export const importantReg = /\s*!important$/ ; export const idChar = '#[^#\\.\\[\\*:\\s]+' ; export const classChar = '\\.[^#\\.\\[\\*:\\s]+' ; export const attrChar = '\\[[a-zA-Z][a-zA-Z0-9\\-]*(?:[\\|\\^\\$\\*~]?=(?:\'[^\']*\'|"[^"]*"|[^\'"\\]]+))?\\]' ; export const pseudoChar = '\\:{1,2}[a-zA-Z-]+(?:\\((?:[^\\)]+|[^\\(]+\\([^\\)]+\\))\\))?' ; export const createFullMatch = ( s ) => new RegExp ( `^(?:${ s })$` ) ; export const createUnitMatch = ( s ) => new RegExp ( `(?:^|\\s)(?:${ s })(?:\\s|$)` ) ;