use maintained theme

This commit is contained in:
Christoph Cullmann 2021-02-18 22:21:36 +01:00
parent 640572ecab
commit 0c7cb4486a
1779 changed files with 41468 additions and 26258 deletions

View file

@ -0,0 +1,12 @@
import { Segment, useDefault } from "segmentit";
const segmentit = useDefault(new Segment());
lunr.segmentit = segmentit;
lunr.queryHandler = (query) => {
if (/^[\u4e00-\u9fa5]+$/.test(query))
query = lunr.segmentit
.doSegment(query)
.map((seg) => "+" + seg.w)
.join(" ");
return query;
};