mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-10 15:26:06 +01:00
Fixed regexp to match only front matter and not getting confused with hr
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user