Skip to content

Commit

Permalink
Modify YFM pattern #535
Browse files Browse the repository at this point in the history
  • Loading branch information
tommy351 committed Mar 17, 2014
1 parent 5009d77 commit f07d120
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/util/yfm.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ var _ = require('lodash'),
escape = require('./escape').yaml;

var yfm = module.exports = function(source){
var content = source.replace(/^-{3}/, '').split('---'),
var content = source.replace(/^-{3,}/, '').split(/-{3,}/),
result = {};

if (content.length === 1){
Expand Down

0 comments on commit f07d120

Please sign in to comment.