Jacky Zhao
2023-08-23 b444c5c13b983bf80df8b6d020eb246e9fd3e78e
quartz/components/scripts/search.inline.ts
@@ -58,8 +58,9 @@
    })
    .join(" ")
  return `${startIndex === 0 ? "" : "..."}${slice}${endIndex === tokenizedText.length - 1 ? "" : "..."
    }`
  return `${startIndex === 0 ? "" : "..."}${slice}${
    endIndex === tokenizedText.length - 1 ? "" : "..."
  }`
}
const encoder = (str: string) => str.toLowerCase().split(/([^a-z]|[^\x00-\x7F])/)