Skip to content

Commit

Permalink
Fixed script tag regexes which were too greedy.
Browse files Browse the repository at this point in the history
  • Loading branch information
stormsilver authored and iamnoah committed Jan 28, 2011
1 parent 2bc881e commit b43a5b9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions writeCapture.js
Original file line number Diff line number Diff line change
Expand Up @@ -375,9 +375,9 @@
return match[2] || match[3];
};
}
var SCRIPT_TAGS = /(<script[\s\S]*?>)([\s\S]*?)<\/script>/ig,
SCRIPT_2 = /<script[\s\S]*?\/>/ig,

var SCRIPT_TAGS = /(<script[^>]*>)([\s\S]*?)<\/script>/ig,
SCRIPT_2 = /<script[^>]*\/>/ig,
SRC_REGEX = attrPattern('src'),
SRC_ATTR = matchAttr('src'),
TYPE_ATTR = matchAttr('type'),
Expand Down

0 comments on commit b43a5b9

Please sign in to comment.