mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-21 15:32:23 +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) ->
|
blankOutBlacklistedCommands: (line) ->
|
||||||
line.replace @blacklistedCommandRegex, (command) ->
|
line.replace @blacklistedCommandRegex, (command) ->
|
||||||
command.replace(
|
Array(command.length+1).join('.')
|
||||||
/{.*}/, (args) ->
|
|
||||||
'{' + args.slice(1, args.length-1).split('').map((_char)-> '.').join('') + '}'
|
|
||||||
).replace(
|
|
||||||
/\[.*\]/, (args) ->
|
|
||||||
'[' + args.slice(1, args.length-1).split('').map((_char)-> '.').join('') + ']'
|
|
||||||
)
|
|
||||||
|
|
Loading…
Reference in a new issue