xMerchant

xMerchant

18.6k Downloads

Search with text containing `[` may cause lua error

doneykoo opened this issue ยท 0 comments

commented

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to map: Stormwind City, Old Town, 76,65
  2. Talk with NPC: War Mount NPC
  3. in search box, type "re["
  4. See lua error:
1x xMerchant/core.lua:494: malformed pattern (missing ']')
[string "=[C]"]: in function `match'

Locals:
(*temporary) = "reins of the black war tiger"
(*temporary) = "re["

Expected behavior
No lua error

Screenshots

Version:

  • wow 10.1
  • Server locale region US

Additional context
n/a