Skip to content

Commit 4a76a15

Browse files
committed
Merge pull request #7 from exocom/master
Bug Fixed: <header> being stripped. Simple update to RegEX
2 parents 300684b + d3a9130 commit 4a76a15

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

scripts/jquery.ajaxy.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4273,8 +4273,8 @@ String.prototype.queryStringToJSON = String.prototype.queryStringToJSON || funct
42734273
htmlCompat: function(html){
42744274
var result = String(html)
42754275
.replace(/<\!DOCTYPE[^>]*>/i, '')
4276-
.replace(/<(html|head|body|title|meta)/gi,'<div id="ajaxy-$1"')
4277-
.replace(/<\/(html|head|body|title|meta)/gi,'</div')
4276+
.replace(/<(html|head|body|title|meta)\b/gi,'<div id="ajaxy-$1"')
4277+
.replace(/<\/(html|head|body|title|meta)\b/gi,'</div')
42784278
;
42794279

42804280
// Return result

scripts/jquery.ajaxy.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)