mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Ensure that autocomplete works properly with objects starting with double quotes. #5281
This commit is contained in:
@@ -125,8 +125,9 @@ function registerAutocomplete(api, transId, sqlEditorPref, onFailure) {
|
||||
// This function is used to filter the data and call the callback
|
||||
// function with that filtered data.
|
||||
function setAutoCompleteData() {
|
||||
const searchRe = new RegExp('^"{0,1}' + search, 'i');
|
||||
let filterData = self_local.editor.state.autoCompleteList.filter((item)=>{
|
||||
return item.text.toLowerCase().startsWith(search.toLowerCase());
|
||||
return searchRe.test(item.text)
|
||||
});
|
||||
|
||||
cb({
|
||||
|
||||
Reference in New Issue
Block a user