Permalink
Browse files

Merge #262

  • Loading branch information...
2 parents 86c5e83 + 06da1a3 commit 943b3d42ec51a5d93b81f6fd7494e181e13f535e @dhcole dhcole committed Mar 25, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 _includes/model.js
View
@@ -429,8 +429,8 @@ function loadPost(user, repo, branch, path, file, cb) {
writeable: writeable()
};
- var res = { raw_metadata: "", published: false, writeable: writeable() };
- res.content = content.replace(/(---\n)((.|\n)*)\n---\n?/, function(match, dashes, frontmatter) {
+ var res = { raw_metadata: "", published: false };
+ res.content = content.replace(/^(---\n)((.|\n)*?)\n---\n?/, function(match, dashes, frontmatter) {
res.raw_metadata = frontmatter;
res.published = published(frontmatter);
return "";

0 comments on commit 943b3d4

Please sign in to comment.