From d9aff3c3f400ad6bd614aaa9bf9644a9699b6812 Mon Sep 17 00:00:00 2001 From: Shane Kilkelly Date: Fri, 16 Jun 2017 09:41:40 +0100 Subject: [PATCH] Blacklist more commands --- .../directives/aceEditor/spell-check/SpellCheckManager.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 d4008b0bcd..22f96a34d4 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 @@ -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) ->