فهرست منبع

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

Fix regular expression for completion event logging

GitOrigin-RevId: fbe3b91722fe40d4bb1116f23a78ebcebbd02b37
Eric Mc Sween 3 سال پیش
والد
کامیت
cce1a91205
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      services/web/frontend/js/features/source-editor/extensions/completion-logger.ts

+ 1 - 1
services/web/frontend/js/features/source-editor/extensions/completion-logger.ts

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