model.AutocompleteArgTypeText type argument has a pattern field with a regex in it. Right now this field is not used. Change the code to return autocomplete suggestions only if pattern matches the user input. Changes should be done only on a server.
If you're interested please comment here and come join our "Contributors" community channel on our daily build server, where you can discuss questions with community members and the Mattermost core team. For technical advice or questions, please join our "Developers" community channel.
New contributors please see our Developer's Guide.
Will work on this :)
Hi @iomodo, I have a doubt. If the argument has a pattern and the input match that pattern, then what is the expected suggestion? For example if the pattern was \d{3,6} and the input was 123, then which would be the expected suggestion?
My concern is the pattern would be any kind of regexp, it could be something like option1|option2, on|off, etc. or could be anything ?
Hey @rvillablanca, if the pattern was \d{3,6} and the input was 123 expected suggestion will be 123. If the input was for example blabla there would be no suggestion. Pattern field is just for filtering if the input pattern is correct or not and it could be any standard regexp.
@iomodo would you be able to provide test steps or guidance for this?
Most helpful comment
Will work on this :)