From 2d954baa62661b9410582405300b0579bd945549 Mon Sep 17 00:00:00 2001 From: Shane Kilkelly Date: Mon, 22 Feb 2016 12:04:15 +0000 Subject: [PATCH] match cite commands like `footcite` too. --- .../aceEditor/auto-complete/AutoCompleteManager.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 f23ba8879c..a8afdeaa44 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 @@ -49,7 +49,7 @@ define [ lineUpToCursor = editor.getSession().getTextRange(range) commandFragment = getLastCommandFragment(lineUpToCursor) if commandFragment - citeMatch = commandFragment.match(/^~?\\(cite[a-z]?){(.*,)?(\w*)/) + citeMatch = commandFragment.match(/^~?\\([a-z]*cite[a-z]?){(.*,)?(\w*)/) if citeMatch commandName = citeMatch[1] previousArgs = citeMatch[2]