So using the first example at https://select2.github.io/examples.html 'n d' should find "North Dakota" as well as 'n rth' should find "North Dakota" and "North Carolina"
Is there a flag or can I do a simple code change?
Thanks,
Marc
if (text.match(new RegExp(term.replace(/ /g,'.*'),'i'))) {
--
You received this message because you are subscribed to the Google Groups "select2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to select2+u...@googlegroups.com.
To post to this group, send email to sel...@googlegroups.com.
Visit this group at https://groups.google.com/group/select2.
For more options, visit https://groups.google.com/d/optout.