mirror of
https://github.com/overleaf/overleaf.git
synced 2025-03-03 14:53:24 +00:00
Blacklist more commands
This commit is contained in:
parent
a1d2d5b313
commit
d9aff3c3f4
1 changed files with 1 additions and 1 deletions
|
@ -252,7 +252,7 @@ define [
|
|||
return $.ajax options
|
||||
|
||||
blankOutBlacklistedCommands: (line) ->
|
||||
line.replace /\\label(\[[^\]]*\])?{[^}]*}/g, (command) ->
|
||||
line.replace /\\(label|ref|usepackage|begin|end)(\[[^\]]*\])?{[^}]*}/g, (command) ->
|
||||
command = command.replace /{.*}/, (args) ->
|
||||
'{' + args.slice(1, args.length-1).split('').map((_char)-> '.').join('') + '}'
|
||||
command.replace /\[.*\]/, (args) ->
|
||||
|
|
Loading…
Reference in a new issue