()
| 343 | }; |
| 344 | |
| 345 | const onMentionCommand = async () => { |
| 346 | const { replacement } = await getCommand().replaceWord( |
| 347 | getMentionReplacement, |
| 348 | onUpdate, |
| 349 | ); |
| 350 | const mention = replacement.trim().substring(1); |
| 351 | updateQuery(mention); |
| 352 | }; |
| 353 | |
| 354 | /** |
| 355 | * Checks if the current cursor position contains a valid mention pattern (@username) |
nothing calls this directly
no test coverage detected