support cache search in google drive api

This commit is contained in:
Xuan Sang LE 2018-03-03 23:07:42 +01:00
parent 9ead6c55ef
commit aeecaa4e81

View File

@ -307,7 +307,7 @@ self.OS.API.onsearch "Google Drive", (t) ->
arr = []
term = new RegExp t, "i"
for k, v of G_CACHE
if k.match term or (v and v.mime.match term)
if (k.match term) or (v and v.mime.match term)
file = k.asFileHandler()
file.text = file.basename
file.mime = v.mime