Skip to content
This repository
Browse code

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

  • Loading branch information...
commit 7b9b38dbe757c0e235304adef524f44637aa4310 1 parent cb581e5
scottjehl authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  respond.src.js
2  respond.src.js
@@ -104,7 +104,7 @@ window.matchMedia = window.matchMedia || (function(doc, undefined){
104 104
105 105 //find media blocks in css text, convert to style blocks
106 106 translate = function( styles, href, media ){
107   - var qs = styles.match( /@media[^\{]+\{([^\{\}]+\{[^\}\{]+\})+/gi ),
  107 + var qs = styles.match( /@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi ),
108 108 ql = qs && qs.length || 0,
109 109 //try to get CSS path
110 110 href = href.substring( 0, href.lastIndexOf( "/" )),

0 comments on commit 7b9b38d

Please sign in to comment.
Something went wrong with that request. Please try again.