Fixed regexp to match only front matter and not getting confused with hr

This commit is contained in:
Djamil Legato
2014-09-18 18:02:30 -07:00
parent e48ca346ca
commit fb34d15e3c

View File

@@ -267,7 +267,7 @@
render: function() { render: function() {
this.currentvalue = this.editor.getValue().replace(/^---\n([^---]*)---\n{1,}/, ''); this.currentvalue = this.editor.getValue().replace(/^---([\s\S]*?)---\n{1,}/gm, '');
// empty code // empty code
if (!this.currentvalue) { if (!this.currentvalue) {