tasks/csstidy.js
// after handle src, recover special string
after handle src, recover special string
after handle src recover special string
function afterHandleSrc (content) {
        content = content.replace(/#tidy1#/g, 'progid:');
        content = content.replace(/#tidy2#/g, '://');
        content = content.replace(/#tidy3#/g, ':');
        content = content.replace(/#tidy4#/g, ';');
        content = content.replace(/#tidy5#/g, '/');
        content = content.replace(/#tidy6#/g, '//');
        content = content.replace(/(\}|\*\/)(?!\r|\n)/g, function(match){
            return match + '\n';
        });
        return content;
    }
function afterHandleSrc ( content ) { content = content . replace ( / #tidy1# / g , 'progid:' ) ; content = content . replace ( / #tidy2# / g , '://' ) ; content = content . replace ( / #tidy3# / g , ':' ) ; content = content . replace ( / #tidy4# / g , ';' ) ; content = content . replace ( / #tidy5# / g , '/' ) ; content = content . replace ( / #tidy6# / g , '//' ) ; content = content . replace ( / (\}|\*\/)(?!\r|\n) / g , function ( match ) { return match + '\n' ; } ) ; return content ; }
after handle src, recover special string
after handle src recover special string
// handle compressive css file 