#269: Addons (Public) / ItemPreview2
Status: Corrections needed
Tag: Bug

image.png

Created by Grox 3 paź 2024, Edited 23 lut 2025

This happens only when the string is exactly "abcd (" (with a space) because the escape sequence of the ( gets broken. Subsequent String/Table Manipulation causes this issue. Working on a fix

Brontes, 10 sie 2025

🛠️ Corrections Required

🔎 What Was Verified

  • Source inspection of ItemPreview2 lua/ui.lua (FilterName, ~line 701-713) in the installed copies under both the DEV client and the LIVE client (interface/addons/itempreview2, version.txt 1784726806, addonVersion = "Arcadia Update x64 4.27"); both copies are identical.
  • The search fix proposed in the 2025-08-10 comment (escaping ( before matching) is not present in the current addon.

❌ Issue

  • FilterName still passes the raw lowered search text directly as a Lua pattern: string.match(loweredname, name_id_search) and string.match(id, name_id_search).
  • Inputs with pattern magic characters such as (, [ or % therefore still raise Lua pattern errors (e.g. "unfinished capture", "malformed pattern") for every list entry during FilterList, which matches the reported error and FPS drop.

📌 Required Correction Make the name/ID search treat user input as plain text, e.g. string.find(text, name_id_search, 1, true) for both the name and ID checks, or escape all Lua magic characters (^$()%.[]*+-?) before calling string.match. Then publish the corrected ItemPreview2 build to the client/launcher distribution.

⚠️ Validation Source inspection only; the in-game error was not reproduced in this review.

Grox, 7 paź 2026

File: itempreview2\lua\ui.lua in line 592 add the following: name_id_search = string.gsub(name_id_search, " %(", tostring(" ()"))

this fixes all errors/fps drops and keeps the functionality 100% intact

Brontes, 10 sie 2025

parent:UIParent call IP_2_main_frame's OnUpdate, line: [string "?"]:596: unfinished capture

Grox, 3 paź 2024