Merge pull request #13897 from overleaf/ae-completion-event

Fix regular expression for completion event logging

GitOrigin-RevId: fbe3b91722fe40d4bb1116f23a78ebcebbd02b37
This commit is contained in:
Eric Mc Sween 2023-07-14 14:36:38 -04:00 committed by Copybot
parent 0c695fbbcb
commit cce1a91205

View file

@ -23,6 +23,6 @@ export const completionLogger = ViewPlugin.define(view => {
})
const completionCommand = (label: string): string | null => {
const matches = label.match(/^(\\\w+)/)
const matches = label.match(/^\\(\w+)/)
return matches ? matches[1] : null
}