mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-04 06:39:02 +02:00
Simplified and faster blanking
This commit is contained in:
+1
-7
@@ -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('.')
|
||||
|
||||
Reference in New Issue
Block a user