Correct regex expression for auto complete quick actions
-
Please check this box if this contribution uses AI-generated content as outlined in the GitLab DCO & CLA
What does this MR do and why?
Previously when adding /add_contacts
/remove_contacts
the quick action would autocomplete and show /add_contacts [contact:
/remove_contacts [contact:
At some point this stopped working and now when using either quick action it no longer adds [contact: and we have to manually type this.
This MR fixes this regression and the functionality is as before.
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Before
After
How to set up and validate locally
- You will need CRM enabled and one contact setup as outlined in documentation
- Type the quick action
/add_contacts
in the Master branch. - This will show that the autocomplete does not work.
- In the feature branch type the quick action
/add_contacts
- This will add the
[contact:
- Confirm that typing
/spend
does not does not add autocomplete (timelog categories). You will need to make sure you have them enabled. As outlined in the original MR that this issue was introduced.
Edited by Lee Tickett