diff --git a/api/js/etemplate/vfsSelectUI.js b/api/js/etemplate/vfsSelectUI.js index 5255b13faa..b1f0d558c6 100644 --- a/api/js/etemplate/vfsSelectUI.js +++ b/api/js/etemplate/vfsSelectUI.js @@ -331,7 +331,7 @@ app.classes.vfsSelectUI = (function(){ "use strict"; return AppJS.extend( var searchQuery = function (_query) { var result = {}; - var reg = RegExp("^"+_query, 'ig'); + var reg = RegExp(_query, 'ig'); var key = 0; for (var i in self.dirContent) {