meteor-autocomplete icon indicating copy to clipboard operation
meteor-autocomplete copied to clipboard

Word boundaries on search token?

Open codfish92 opened this issue 11 years ago • 0 comments

Im currently using this package with almost no issues, however a use case came up in my app where a user may not want the autocomplete template to appear. Currently I am using the '@' as the starting token, but only want the autocomplete template to appear if it is the start of the word. The token field seems to match any occurance of the character. I have looked through the readme to try and find if there is a way to customize the token field to match an optional whitespace character, but I can't seem to find it. Is it possible to tell the template helper to only appear if there is an optional whitespace character before it or pass the token field a regex to match?

codfish92 avatar Aug 07 '14 21:08 codfish92