Skip to content

Better website matching #95

@markg85

Description

@markg85

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions