Permalink
Browse files

Small adjustment to the match counts for non-bracket chars. Fixes #78

  • Loading branch information...
scottjehl
scottjehl committed Jan 27, 2012
1 parent cb581e5 commit 7b9b38dbe757c0e235304adef524f44637aa4310
Showing with 1 addition and 1 deletion.
  1. +1 −1 respond.src.js
View
@@ -104,7 +104,7 @@ window.matchMedia = window.matchMedia || (function(doc, undefined){
//find media blocks in css text, convert to style blocks
translate = function( styles, href, media ){
- var qs = styles.match( /@media[^\{]+\{([^\{\}]+\{[^\}\{]+\})+/gi ),
+ var qs = styles.match( /@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi ),
ql = qs && qs.length || 0,
//try to get CSS path
href = href.substring( 0, href.lastIndexOf( "/" )),

0 comments on commit 7b9b38d

Please sign in to comment.