From 05d1e2186b2aae3d3046a3b7829d8078846bf75c Mon Sep 17 00:00:00 2001 From: Jrc13245 Date: Sat, 10 Jan 2026 09:59:57 -0500 Subject: [PATCH] replace match with find in getpriority path for efficiency --- Utility.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Utility.lua b/Utility.lua index b58d4a6..6f8d5ad 100644 --- a/Utility.lua +++ b/Utility.lua @@ -275,7 +275,8 @@ do return PRIORITY[source] end -- Check for prefixed sources (e.g., "pfui:player" -> "pfui") - local prefix = string.match(source, "^(%w+):") + -- Using string.find with captures for Lua 5.0 compatibility + local _, _, prefix = string.find(source, "^(%w+):") if prefix and PRIORITY[prefix] then return PRIORITY[prefix] end