mirror of
https://github.com/flarum/framework.git
synced 2025-05-23 07:09:57 +08:00
Improve fulltext search API and interface
This commit is contained in:
@ -5,7 +5,7 @@ export default function(string, phrase, length) {
|
||||
return string;
|
||||
}
|
||||
|
||||
const regexp = regexp instanceof RegExp ? phrase : new RegExp(phrase, 'gi');
|
||||
const regexp = phrase instanceof RegExp ? phrase : new RegExp(phrase, 'gi');
|
||||
|
||||
let highlightedString = string;
|
||||
let start = 0;
|
||||
|
Reference in New Issue
Block a user