From 263ee43cb56f369688919725db6f0124c9b52bce 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 --- services/clsi/app/coffee/DraftModeManager.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/clsi/app/coffee/DraftModeManager.coffee b/services/clsi/app/coffee/DraftModeManager.coffee index a0d859d728..253cbffdd3 100644 --- a/services/clsi/app/coffee/DraftModeManager.coffee +++ b/services/clsi/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