mirror of
https://github.com/alex-shpak/hugo-book.git
synced 2024-11-25 12:46:44 +00:00
修改语言配置与官方一致,修改搜索token生成机制
This commit is contained in:
parent
0f12973881
commit
51e6fe7952
@ -15,6 +15,7 @@
|
|||||||
{
|
{
|
||||||
encode: false,
|
encode: false,
|
||||||
tokenize: function(str) {
|
tokenize: function(str) {
|
||||||
return str.replace(/[\x00-\x7F]/g, '').split('');
|
// 只去除空白行,标点符号保留、表情符号保留、数字保留、英文保留
|
||||||
|
return str.replace(/\n*\s*\r*/g, '').split('');
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user