#131 - Fixed highlighting for Korean queries

This commit is contained in:
Simon Cambier
2022-11-28 21:37:42 +01:00
parent 473fbca336
commit 6b1e58fcce
3 changed files with 7 additions and 2 deletions

View File

@@ -7,6 +7,7 @@ import type {
} from '../globals'
import {
chsRegex,
chsSegmenter,
indexingStep,
IndexingStepType,
SPACE_OR_PUNCTUATION,
@@ -24,7 +25,6 @@ import { cacheManager } from '../cache-manager'
const tokenize = (text: string): string[] => {
const tokens = text.split(SPACE_OR_PUNCTUATION)
const chsSegmenter = (app as any).plugins.plugins['cm-chs-patch']
if (chsSegmenter) {
return tokens.flatMap(word =>