// strip url's parentheses if possible (no spaces inside)
replace(/url\(['"]([^\)]+)['"]\)/g, function(urlMatch) {
- if (urlMatch.match(/\s/g) != null)
+ if (urlMatch.match(/\s/g) !== null)
return urlMatch;
else
return urlMatch.replace(/\(['"]/, '(').replace(/['"]\)$/, ')');
replace(/(\r\n)+/g, '\r\n');
// whitespace before !important
- replace(/ !important/g, '!important')
+ replace(/ !important/g, '!important');
// space with a comma
- replace(/[ ]?,[ ]?/g, ',')
+ replace(/[ ]?,[ ]?/g, ',');
// restore spaces inside IE filters (IE 7 issue)
replace(/progid:[^(]+\(([^\)]+)/g, function(match, contents) {
nextEnd = data.indexOf('*/', nextStart);
if (nextStart == -1 || nextEnd == -1) break;
- tempData.push(data.substring(cursor, nextStart))
+ tempData.push(data.substring(cursor, nextStart));
if (data[nextStart + 2] == '!') {
// in case of special comments, replace them with a placeholder
context.specialComments.push(data.substring(nextStart, nextEnd + 2));