Closed mre closed 2 years ago
I think I don't want to accept this in the current state, I'd rather clean up domain parsing which should hopefully make this change unnecessary.
Sure, no worries. Gonna close this PR for now. Would be glad if you could look into the domain parsing if you find some time. 👍
With the changes in 0.9.0, this is no longer a problem: https://github.com/robinst/linkify/blob/main/CHANGELOG.md#090---2022-07-11
URLs can contain wildcards as in http://*.example.org. These are commonly used in cases where listing all possible URLs would not be feasible, e.g. when defining Content-Security-Policy rules 1.
It can be surprising to users of linkify that these URLs get extracted. As such, this change adds support for disabling the extraction of wildcard URLs.
Fixes #37.