Permalink
Browse files

Updated the comment-free parser. More specific in its matching now.

  • Loading branch information...
1 parent 480c496 commit fd78cd8da501404e3c5946e849aa24057f43b8b4 scottjehl committed May 26, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 respond.min.js
  2. +1 −1 respond.src.js
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -73,7 +73,7 @@
//find media blocks in css text, convert to style blocks
translate = function( styles, href, media ){
- var qs = styles.match( /@media ([^\{]+)\{((?!@media)[\s\S])*(?=\}(?![^\{]*\}))/gmi ),
+ var qs = styles.match( /@media [^\{]+\{((?!@media)[\s\S])*\}(?=[^\{]*\})/gmi ),
ql = qs && qs.length || 0,
//try to get CSS path
href = href.substring( 0, href.lastIndexOf( "/" )),

0 comments on commit fd78cd8

Please sign in to comment.