Describe the bug
A message with a link that contains "%" char throw an error and is not displayed
To Reproduce
Steps to reproduce the behavior:
Type https://discord.gg/EQMK3nhaTT%7Brt5%7D in a chat
See the lua error
Expected behavior
Message should show up properly with the link
Lua error
7x Prat-3.0-3.9.1\services\patterns.lua:234: invalid capture index
[C]: in function `gsub'
Prat-3.0-3.9.1\services\patterns.lua:234: in function `ReplaceMatches'
Prat-3.0-3.9.1\addon\addon.lua:702: in function <Prat-3.0\addon\addon.lua:613>
(tail call): ?
FrameXML\ChatFrame.lua:2797: in function `ChatFrame_OnEvent'
[string "*:OnEvent"]:1: in function <[string "*:OnEvent"]:1>
Locals:
(*temporary) = "Plus d'infos & candidature sur : @##1##@"
(*temporary) = "@##1##@"
(*temporary) = "|cff149bfd|Hurl:https://discord.gg/EQMK3nhaTT%7Brt5%7D|h[https://discord.gg/EQMK3nhaTT%7Brt5%7D]|h|r"
Version Information (please complete the following information):
Describe the bug A message with a link that contains "%" char throw an error and is not displayed
To Reproduce Steps to reproduce the behavior:
https://discord.gg/EQMK3nhaTT%7Brt5%7D
in a chatExpected behavior Message should show up properly with the link
Lua error
Version Information (please complete the following information):
Addons you are running Many, can provide the list if needed