From e8731bc2768e5f43e0219d66405ff3dd19a84584 Mon Sep 17 00:00:00 2001 From: Nate Stemen Date: Fri, 20 Oct 2017 11:07:56 +0100 Subject: [PATCH] allow for capital letters in command name --- .../aceEditor/auto-complete/AutoCompleteManager.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/web/public/coffee/ide/editor/directives/aceEditor/auto-complete/AutoCompleteManager.coffee b/services/web/public/coffee/ide/editor/directives/aceEditor/auto-complete/AutoCompleteManager.coffee index 24a524b4b6..6f2e5fbec9 100644 --- a/services/web/public/coffee/ide/editor/directives/aceEditor/auto-complete/AutoCompleteManager.coffee +++ b/services/web/public/coffee/ide/editor/directives/aceEditor/auto-complete/AutoCompleteManager.coffee @@ -149,7 +149,7 @@ define [ lastCharIsBackslash = lineUpToCursor.slice(-1) == "\\" lastTwoChars = lineUpToCursor.slice(-2) # Don't offer autocomplete on double-backslash, backslash-colon, etc - if lastTwoChars.match(/^\\[^a-z]$/) + if lastTwoChars.match(/^\\[^a-zA-Z]$/) @editor?.completer?.detach?() return if commandName in ['begin', 'end'] @@ -230,7 +230,7 @@ define [ ) ) if lineBeyondCursor - if partialCommandMatch = lineBeyondCursor.match(/^([a-z0-9]+)\{/) + if partialCommandMatch = lineBeyondCursor.match(/^([a-zA-Z0-9]+)\{/) # We've got a partial command after the cursor commandTail = partialCommandMatch[1] # remove rest of the partial command, right of cursor