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

Better website matching #95

Open
markg85 opened this issue Oct 19, 2018 · 0 comments
Open

Better website matching #95

markg85 opened this issue Oct 19, 2018 · 0 comments

Comments

@markg85
Copy link

markg85 commented Oct 19, 2018

Hi,

The current regex only matches a website in one specific case.
[ www.somesite.tld ] ...

But there are lots of torrents out there that don't follow that scheme and just dump their url in the filename. Which wouldn't be caught by the current regex en thus the title field itself still contains the url. Not really ideal.

A 'better' regex would be:
(www|http:|https:)+[^\s]+[\w]

I'm by no means an expert in regex though, i merely found that one :)
But i don't know if that would clean any garbage before and after it.

Cheers,
Mark

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant