* Fixed issue [#396](https://github.com/jakubpawlowicz/clean-css/issues/396) - better input source maps tracking.
* Fixed issue [#480](https://github.com/jakubpawlowicz/clean-css/issues/480) - extracting uppercase property names.
+[3.1.7 / 2015-xx-xx](https://github.com/jakubpawlowicz/clean-css/compare/v3.1.6...3.1)
+==================
+
+* Fixes issue [#496](https://github.com/jakubpawlowicz/clean-css/issues/496) - space after bracket removal.
+
[3.1.6 / 2015-03-12](https://github.com/jakubpawlowicz/clean-css/compare/v3.1.5...v3.1.6)
==================
}
function spaceMinifier(property, value) {
- if (property == 'filter' || processable.implementedFor.test(property))
+ if (property == 'filter' || value.indexOf(') ') == -1 || processable.implementedFor.test(property))
return value;
- return value.replace(/\) /g, ')');
+ return value.replace(/\) ((?![\+\-] )|$)/g, ')$1');
}
function reduce(body, options) {
'body{margin-left:calc(50vw + (1024px/2))}',
'body{margin-left:calc(50vw + (1024px/2))}'
],
+ 'not inside calc method with brackets #2': [
+ 'body{width:calc((978px * 2/3) - 30px)}',
+ 'body{width:calc((978px * 2/3) - 30px)}'
+ ],
'with space between braces': [
'body{width:calc( ( 100% - 12px) / 3 )}',
'body{width:calc((100% - 12px)/ 3)}'