mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-04 14:49:01 +02:00
Make draft mode regex global
This commit is contained in:
@@ -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]{")
|
||||
Reference in New Issue
Block a user