luni3359 / koa-bot

Discord bot
MIT License
3 stars 0 forks source link

Invalid links still match as long as the domain name is present #59

Closed luni3359 closed 4 years ago

luni3359 commented 4 years ago

This affects automatic galleries. This could technically be abused to show previews the user did not intend to. Nobody is going to do that, but it's still a regex bug.

Example of invalid matches:

luni3359 commented 4 years ago

Directly related to issue #30, it's a bug that will go away after that gets done.

luni3359 commented 4 years ago

Patched it temporarily in commit 8bc13eab5a5a65b580886b4ea57ceb90b32427ac. I accidentally merged it directly without making the pull request, so it's not going to show in the PR history.

We still have to fix this for good in issue #30.