Skip to content

Commit

Permalink
Small adjustment to the match counts for non-bracket chars. Fixes sco…
Browse files Browse the repository at this point in the history
  • Loading branch information
scottjehl committed Jan 27, 2012
1 parent cb581e5 commit 7b9b38d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion respond.src.js
Expand Up @@ -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( "/" )),
Expand Down

0 comments on commit 7b9b38d

Please sign in to comment.