function listSuggests(value) { if (!value) return []; const re = new RegExp( value .replace(/([\\\/\(\)\+\*\?\:\\[\]\^\$])/g, '\\$1') .replace(/(\\.)/g, '$1.*?') ); const items = window.items; const result = items.filter((i) =...