|
@@ -47,7 +47,7 @@ define [
|
|
|
lineUpToCursor = editor.getSession().getTextRange(upToCursorRange)
|
|
lineUpToCursor = editor.getSession().getTextRange(upToCursorRange)
|
|
|
commandFragment = getLastCommandFragment(lineUpToCursor)
|
|
commandFragment = getLastCommandFragment(lineUpToCursor)
|
|
|
if commandFragment
|
|
if commandFragment
|
|
|
- citeMatch = commandFragment.match(/^~?\\([a-z]*cite[a-z]*(?:\[.*])?){([^}]*,)?(\w*)/)
|
|
|
|
|
|
|
+ citeMatch = commandFragment.match(/^~?\\([a-z]*cite[a-z]*(?:\[.*])?){([^}]*, *)?(\w*)/)
|
|
|
if citeMatch
|
|
if citeMatch
|
|
|
beyondCursorRange = new Range(pos.row, pos.column, pos.row, 99999)
|
|
beyondCursorRange = new Range(pos.row, pos.column, pos.row, 99999)
|
|
|
lineBeyondCursor = editor.getSession().getTextRange(beyondCursorRange)
|
|
lineBeyondCursor = editor.getSession().getTextRange(beyondCursorRange)
|