mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
match cite commands like footcite
too.
This commit is contained in:
parent
b505f0d455
commit
2d954baa62
1 changed files with 1 additions and 1 deletions
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue