mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-02 05:41:33 +02:00
Blacklist more commands
This commit is contained in:
+1
-1
@@ -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) ->
|
||||
|
||||
Reference in New Issue
Block a user