mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-17 11:23:01 +00:00
Simplified and faster blanking
This commit is contained in:
parent
b4e2dcf7ef
commit
3d2d7652c6
1 changed files with 1 additions and 7 deletions
|
@ -265,10 +265,4 @@ define [
|
|||
|
||||
blankOutBlacklistedCommands: (line) ->
|
||||
line.replace @blacklistedCommandRegex, (command) ->
|
||||
command.replace(
|
||||
/{.*}/, (args) ->
|
||||
'{' + args.slice(1, args.length-1).split('').map((_char)-> '.').join('') + '}'
|
||||
).replace(
|
||||
/\[.*\]/, (args) ->
|
||||
'[' + args.slice(1, args.length-1).split('').map((_char)-> '.').join('') + ']'
|
||||
)
|
||||
Array(command.length+1).join('.')
|
||||
|
|
Loading…
Reference in a new issue