Skip to content

Commit

Permalink
Merge pull request paulirish#89 from chrsr/master
Browse files Browse the repository at this point in the history
Very simple regex update
  • Loading branch information
uxder committed Feb 23, 2012
2 parents 1700751 + 8435b16 commit e71cf82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion javascript/javascript.js
Expand Up @@ -380,7 +380,7 @@ function copypasta(){
return function(client) {
var text = elem.closest("pre")
.nextAll('pre.rule').eq(0).find('.declaration-block').text();
text = text.replace(/\/\*.*?\*\//g,''); // strip comments
text = text.replace(/ \/\*.*?\*\//g,''); // strip comments
zc.setText( text );
$(elem).fadeOut(50).fadeIn(300)
}
Expand Down

0 comments on commit e71cf82

Please sign in to comment.