From a3383f11a127cd8862459fea5866f13952ac5da1 Mon Sep 17 00:00:00 2001 From: James Allen Date: Tue, 2 Feb 2016 15:28:59 +0000 Subject: [PATCH] Make draft mode regex global --- app/coffee/DraftModeManager.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/coffee/DraftModeManager.coffee b/app/coffee/DraftModeManager.coffee index a0d859d..253cbff 100644 --- a/app/coffee/DraftModeManager.coffee +++ b/app/coffee/DraftModeManager.coffee @@ -16,6 +16,6 @@ module.exports = DraftModeManager = _injectDraftOption: (content) -> content # With existing options (must be first, otherwise both are applied) - .replace(/\\documentclass\[/, "\\documentclass[draft,") + .replace(/\\documentclass\[/g, "\\documentclass[draft,") # Without existing options - .replace(/\\documentclass\{/, "\\documentclass[draft]{") \ No newline at end of file + .replace(/\\documentclass\{/g, "\\documentclass[draft]{") \ No newline at end of file