diff --git a/services/web/public/coffee/ide/editor/directives/aceEditor/spell-check/SpellCheckManager.coffee b/services/web/public/coffee/ide/editor/directives/aceEditor/spell-check/SpellCheckManager.coffee index 22f96a34d4..f7ff1ead0d 100644 --- a/services/web/public/coffee/ide/editor/directives/aceEditor/spell-check/SpellCheckManager.coffee +++ b/services/web/public/coffee/ide/editor/directives/aceEditor/spell-check/SpellCheckManager.coffee @@ -253,7 +253,10 @@ define [ blankOutBlacklistedCommands: (line) -> 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) -> - '[' + args.slice(1, args.length-1).split('').map((_char)-> '.').join('') + ']' + 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('') + ']' + )