Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Message with link containing "%" throw lua error #210

Open
Slivo-fr opened this issue Apr 4, 2021 · 0 comments
Open

Message with link containing "%" throw lua error #210

Slivo-fr opened this issue Apr 4, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@Slivo-fr
Copy link

Slivo-fr commented Apr 4, 2021

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:

  1. Type https://discord.gg/EQMK3nhaTT%7Brt5%7D in a chat
  2. 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):

  • Wow Version:
[20:14:00] Dump: value=GetBuildInfo()
[20:14:00] [1]="1.13.6",
[20:14:00] [2]="37497",
[20:14:00] [3]="Feb  5 2021",
[20:14:00] [4]=11306
  • Prat Version:
[20:14:27] Dump: value=Prat.Version
[20:14:27] [1]="Prat |cff8080ff3.0|r (|cff8080ff3.9.1|r)"

Addons you are running
Many, can provide the list if needed

@Slivo-fr Slivo-fr added the bug Something isn't working label Apr 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant