diff --git a/services/web/public/coffee/ide/editor/directives/aceEditor/labels/LabelsManager.coffee b/services/web/public/coffee/ide/editor/directives/aceEditor/labels/LabelsManager.coffee index 631e23bc82..0e504b4ff8 100644 --- a/services/web/public/coffee/ide/editor/directives/aceEditor/labels/LabelsManager.coffee +++ b/services/web/public/coffee/ide/editor/directives/aceEditor/labels/LabelsManager.coffee @@ -26,7 +26,7 @@ define [ if ( change.action in ['remove', 'insert'] and ((_.any(change.lines, (line) -> line.match(/\\label\{[^\}\n\\]{0,80}\}/))) or - (commandFragment?.length > 2 and commandFragment.startsWith('\\label{'))) + (commandFragment?.length > 2 and commandFragment.slice(0,7) == '\\label{')) ) @scheduleLoadLabelsFromOpenDoc()