I know in previous versions of select2, stripDiacritics was exported, so it was available outside the standard socket. In current version 4.0.1, it seems impossible to write a custom match and use select2 stripDiacritics since it is not exported to $.fn.select2.defaults
What is the best way I can pull out the original stripDiacritics for me to write custom matches?
I am trying to write a match that matches both the option text and the data attribute. I am trying to avoid correcting the source of select2, I think it will be a nightmare if I follow this path.
Update
I highlighted a relevant question and posted additional information about the code I'm working with, as suggested in the comments:
I do not ask anyone to write new matches (based on $.fn.select2.defaults.defaults.matcher ) for me, I just ask for the best way to pull out the original stripDiacritics , which is private, so that I can use it.
I could just copy the function (and its dependencies: the DIACRITICS object) into my code, but this is a hole that I am trying to avoid.
Leito source share