From 9fe4f7471c19ff01f0c3756f4f1a6ac367a7ff54 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Sun, 23 Jul 2017 19:11:48 -0700 Subject: [PATCH] Lint --- frontend/models/Document.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/models/Document.js b/frontend/models/Document.js index c2068c1f9..64b37a606 100644 --- a/frontend/models/Document.js +++ b/frontend/models/Document.js @@ -74,7 +74,7 @@ class Document { @computed get isEmpty(): boolean { // Check if the document title has been modified and user generated content exists - return this.text.replace(new RegExp(`^\#$`), '').trim().length === 0; + return this.text.replace(new RegExp(`^#$`), '').trim().length === 0; } @computed get allowSave(): boolean { @@ -149,7 +149,7 @@ class Document { if (!this.title) { this.title = DEFAULT_TITLE; this.text = this.text.replace( - new RegExp(`^\# `), + new RegExp(`^# `), `# ${DEFAULT_TITLE}` ); }