summaryrefslogtreecommitdiff
path: root/site/assets/javascripts/lunr/min/lunr.th.min.js
diff options
context:
space:
mode:
authorjoshua <joshua@joshuayun.com>2023-12-29 20:42:42 -0500
committerjoshua <joshua@joshuayun.com>2023-12-29 20:42:42 -0500
commitf8a0065c71ca5ab736a05d538b2f4614473f5297 (patch)
treea56787906d28732f8c17c1a405e2e260706ffe65 /site/assets/javascripts/lunr/min/lunr.th.min.js
downloadwiki-f8a0065c71ca5ab736a05d538b2f4614473f5297.tar.gz
initial site commit
Diffstat (limited to 'site/assets/javascripts/lunr/min/lunr.th.min.js')
-rw-r--r--site/assets/javascripts/lunr/min/lunr.th.min.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/site/assets/javascripts/lunr/min/lunr.th.min.js b/site/assets/javascripts/lunr/min/lunr.th.min.js
new file mode 100644
index 0000000..dee3aac
--- /dev/null
+++ b/site/assets/javascripts/lunr/min/lunr.th.min.js
@@ -0,0 +1 @@
+!function(e,r){"function"==typeof define&&define.amd?define(r):"object"==typeof exports?module.exports=r():r()(e.lunr)}(this,function(){return function(e){if(void 0===e)throw new Error("Lunr is not present. Please include / require Lunr before this script.");if(void 0===e.stemmerSupport)throw new Error("Lunr stemmer support is not present. Please include / require Lunr stemmer support before this script.");var r="2"==e.version[0];e.th=function(){this.pipeline.reset(),this.pipeline.add(e.th.trimmer),r?this.tokenizer=e.th.tokenizer:(e.tokenizer&&(e.tokenizer=e.th.tokenizer),this.tokenizerFn&&(this.tokenizerFn=e.th.tokenizer))},e.th.wordCharacters="[฀-๿]",e.th.trimmer=e.trimmerSupport.generateTrimmer(e.th.wordCharacters),e.Pipeline.registerFunction(e.th.trimmer,"trimmer-th");var t=e.wordcut;t.init(),e.th.tokenizer=function(i){if(!arguments.length||null==i||void 0==i)return[];if(Array.isArray(i))return i.map(function(t){return r?new e.Token(t):t});var n=i.toString().replace(/^\s+/,"");return t.cut(n).split("|")}}}); \ No newline at end of file