mirror of
https://github.com/xvvvyz/tilde.git
synced 2026-03-11 14:44:24 +00:00
fix capitalized suggestions
This commit is contained in:
parent
75371b79f9
commit
4d2ca856d2
1 changed files with 4 additions and 4 deletions
|
|
@ -1001,11 +1001,11 @@
|
|||
.slice(0, this._limit)
|
||||
.reduce((acc, suggestion) => {
|
||||
const match = new RegExp($.escapeRegex(this._currentInput), 'ig');
|
||||
const matched = suggestion.match(match);
|
||||
|
||||
const suggestionHtml = suggestion.replace(
|
||||
match,
|
||||
`<b>${this._currentInput}</b>`
|
||||
);
|
||||
const suggestionHtml = matched
|
||||
? suggestion.replace(match, `<b>${matched[0]}</b>`)
|
||||
: suggestion;
|
||||
|
||||
return `
|
||||
${acc}
|
||||
|
|
|
|||
Loading…
Reference in a new issue