Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 7b9b38dbe757c0e235304adef524f44637aa4310 1 parent cb581e5
scottjehl authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  respond.src.js
View
2  respond.src.js
@@ -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( "/" )),
Please sign in to comment.
Something went wrong with that request. Please try again.