discord-link-opener icon indicating copy to clipboard operation
discord-link-opener copied to clipboard

Prepends non-link text to link

Open DJN0 opened this issue 3 years ago • 2 comments

This was the link the program tried to open, as you can see it prepended "thing%20" to the link: http://thing%20https//www.gamestop.com/video-games/pc-gaming/components/graphics-cards/products/geforce-rtx-3080-ftw3-ultra-gaming-graphics-card/11121601.html

And this was the discord message containing the link:

potentially gonna be a thing https://www.gamestop.com/video-games/pc-gaming/components/graphics-cards/products/geforce-rtx-3080-ftw3-ultra-gaming-graphics-card/11121601.html

I did modify open.py per this post:

"(?:(?:https?|ftp)://)?[\w/-?=%.#&+-]+.[\w/-?=%.#&+-]+" would fix this I think Originally posted by @pedrorq in #4 (comment)

DJN0 avatar Mar 23 '21 18:03 DJN0

Updated regex and tested on your message and it appears to work. Test out the new open.py

clearyy avatar Mar 25 '21 12:03 clearyy

The new build just closes instantly for me. Old one still runs

DJN0 avatar Mar 25 '21 15:03 DJN0