mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-30 10:52:43 +00:00
Make draft mode regex global
This commit is contained in:
parent
97b5ac6a7f
commit
263ee43cb5
1 changed files with 2 additions and 2 deletions
|
@ -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]{")
|
||||
.replace(/\\documentclass\{/g, "\\documentclass[draft]{")
|
Loading…
Reference in a new issue