summaryrefslogtreecommitdiff
path: root/xmake/modules
diff options
context:
space:
mode:
authorruki <[email protected]>2023-01-21 23:32:54 +0800
committerruki <[email protected]>2023-01-21 23:32:54 +0800
commitde5802cc09b83950eaba7a5bf07f47a481b5484e (patch)
tree0a2ac7a52e49547bda1d5fe053cd90750c277498 /xmake/modules
parent8dd072158d97cb9d41dca24dec2a8e81cf1fceb6 (diff)
improve xrepo complete
Diffstat (limited to 'xmake/modules')
-rw-r--r--xmake/modules/private/xrepo/quick_search/cache.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/private/xrepo/quick_search/cache.lua b/xmake/modules/private/xrepo/quick_search/cache.lua
index 6f145d6ca..2d13a676a 100644
--- a/xmake/modules/private/xrepo/quick_search/cache.lua
+++ b/xmake/modules/private/xrepo/quick_search/cache.lua
@@ -81,9 +81,9 @@ function find(name)
_init()
local list_result = {}
for packagename, packagedata in pairs(cache:data()) do
- if packagename:find(name, 1, true) then
+ if packagename:startswith(name) then
table.insert(list_result, {name = packagename, data = packagedata})
end
end
return list_result
-end \ No newline at end of file
+end