You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constremoveHexCodes=/#([a-zA-Z0-9]{3,6})(\s|;|}|!|,)/g;// also removes also ids with 3 or 6 digits
83
+
constregex=/(#|\.)[^\s:\.\{)[>+,\s]+/gm;// matches all selectors beginning with . or # - e.g. .matching#alsomatch .matchmetoo
84
+
constmatchMultiLineComments=/\/\*([\s\S]*?)\*\//g;// match /* */ from files
85
+
constmatchDoubleQuotes=/"[^"]*"/g;// match everything within " " (double quotes)
86
+
constmatchSingleQuotes=/'[^']*'/g;// match everything within " " (double quotes)
87
+
constmatchSizesWithDots=/\.([0-9]*?)(em|rem|%|vh|vw|s|cm|ex|in|mm|pc|pt|px|vmin)/g;// match everything which starts with . and has numbers in it and ends with em, rem,... - necessary for .9em or .10s
88
+
constmatchOnlyNumbers=/\.([0-9]*?)[0-9](\s|;|}|\))/g;// match if there are just numbers between . and \s or ; or } or ) - otherwise it will be regogniced as class
89
+
constmatchUrlAttributes=/url\(([\s\S]*?)\)/g;// matches url() attributes from css - it can contain .woff or .html or similiar
90
+
constmatchHexCodes=/#([a-zA-Z0-9]{3,6})(\s|;|}|!|,)/g;// matches hex colors with 3 or 6 values - unfortunately also matches also ids with 3 or 6 digits - e.g. matches #fff #header #0d0d0d
0 commit comments