Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@easyops-cn/docusaurus-search-local

Package Overview
Dependencies
Maintainers
1
Versions
107
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@easyops-cn/docusaurus-search-local - npm Package Compare versions

Comparing version 0.5.1 to 0.5.2

6

CHANGELOG.md

@@ -5,2 +5,8 @@ # Changelog

### [0.5.2](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.5.1...v0.5.2) (2020-10-18)
### Bug Fixes
- fix consecutive Chinese words are not matched ([db8541e](https://github.com/easyops-cn/docusaurus-search-local/commit/db8541e6598e2e99b230374b403622f8d3b8a9d3))
### 0.5.1 (2020-10-18)

4

dist/server/server/tokenizer.js

@@ -8,3 +8,3 @@ "use strict";

// https://zhuanlan.zhihu.com/p/33335629
const singleMatchOfWord = /\w+|\p{Unified_Ideograph}/u;
const RegExpConsecutiveWord = /\w+|\p{Unified_Ideograph}+/u;
nodejieba_1.default.load();

@@ -31,3 +31,3 @@ const splitRegExp = [/(_)([^_])/g, /([^_])(_)/g];

while (text.length > 0) {
const match = text.match(singleMatchOfWord);
const match = text.match(RegExpConsecutiveWord);
if (!match) {

@@ -34,0 +34,0 @@ break;

{
"name": "@easyops-cn/docusaurus-search-local",
"version": "0.5.1",
"version": "0.5.2",
"scripts": {

@@ -5,0 +5,0 @@ "test": "jest",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc