Skip to content
Browse files

BaseURI regex in component loading wasn't doing what I thought.

  • Loading branch information...
1 parent f84c9f8 commit 604d322df48894275410bc883899a6bd66ea00b0 @joseph committed Oct 11, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/component.js
View
2 src/core/component.js
@@ -347,7 +347,7 @@ Monocle.Component = function (book, id, index, chapters, source) {
var baseURI = computeBaseURI(reader);
if (baseURI) {
p.source.html = p.source.html.replace(
- new RegExp("(<head(\s[^>]*>)|>)", "im"),
+ new RegExp("(<head[^>]*>)", "im"),
'$1<base href="'+baseURI+'" />'
);
}

0 comments on commit 604d322

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