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