mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Fix select2 local ajax breaking
This commit is contained in:
@ -1528,7 +1528,7 @@ export function dynamicSelect2DataViaAjax(dataProvider) {
|
||||
// fitering if params.data.q available
|
||||
if (params.data && params.data.q) {
|
||||
items = items.filter(function (item) {
|
||||
return new RegExp(params.data.q).test(item.text);
|
||||
return includesIgnoreCaseAndAccents(item.text, params.data.q);
|
||||
});
|
||||
}
|
||||
var promise = new Promise(function (resolve, reject) {
|
||||
|
Reference in New Issue
Block a user