site/node_modules/flexsearch/dist/lang/latin/simple.min.js

2 lines
639 B
JavaScript
Raw Permalink Normal View History

2024-10-14 06:09:33 +00:00
(function(self){'use strict';const a=/[\u0300-\u036f]/g;function d(b){return new RegExp(b,"g")};const e=/[\W_]+/,f=[d("[\u00e0\u00e1\u00e2\u00e3\u00e4\u00e5]"),"a",d("[\u00e8\u00e9\u00ea\u00eb]"),"e",d("[\u00ec\u00ed\u00ee\u00ef]"),"i",d("[\u00f2\u00f3\u00f4\u00f5\u00f6\u0151]"),"o",d("[\u00f9\u00fa\u00fb\u00fc\u0171]"),"u",d("[\u00fd\u0177\u00ff]"),"y",d("\u00f1"),"n",d("[\u00e7c]"),"k",d("\u00df"),"s",d(" & ")," and "];self.FlexSearch.registerCharset("latin:simple",{encode:function(b){var g=this.g,c=b;c.normalize&&(c=c.normalize("NFD").replace(a,""));return g.call(this,c.toLowerCase(),!b.normalize&&f,e,!1)},h:!1,i:""});}(this));