Jacky Zhao
2022-08-04 7ffc907907b14722bf691d1cbd5f178c1c0943a6
fix: CJK search (closes #163)
1 files modified
2 ■■■ changed files
assets/js/full-text-search.js 2 ●●● patch | view | raw | blame | history
assets/js/full-text-search.js
@@ -1,5 +1,5 @@
; (async function() {
  const encoder = (str) => str.toLowerCase().split(/([^a-z]|[^\x00-\x7F])+/)
  const encoder = (str) => str.toLowerCase().split(/([^a-z]|[^\x00-\x7F])/)
  const contentIndex = new FlexSearch.Document({
    cache: true,
    charset: "latin:extra",