mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-05 05:00:02 +00:00
api: use global defines for gfind
This commit is contained in:
+1
-1
@@ -151,7 +151,7 @@ local capture_cache = {}
|
||||
function pfUI.api.GetCaptures(pat)
|
||||
local r = capture_cache
|
||||
if not r[pat] then
|
||||
for a, b, c, d, e in string.gfind(gsub(pat, "%((.+)%)", "%1"), gsub(pat, "%d%$", "%%(.-)$")) do
|
||||
for a, b, c, d, e in gfind(gsub(pat, "%((.+)%)", "%1"), gsub(pat, "%d%$", "%%(.-)$")) do
|
||||
r[pat] = { a, b, c, d, e}
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user