Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
In short, this fixes Sopel being unable to find known-valid TLDs. But it also makes things better than before. No more ugly, unmaintainable regex!
HTMLParser
Both the IANA and Wikipedia data sources are cached locally, persisted/restored to/from the bot's database on shutdown/startup, and periodically updated by a plugin job (minimum age 7 days).
I think about the only thing I didn't do was add example-tests. But I haven't decided against doing so. I've just not gotten to it.
Checklist
make qa
(runsmake quality
andmake test
)See also
This might be sufficient to consider #1648 as "done". I've been unable to find any viable alternative data source that actually provides the information contained in Wikipedia's tables—even the basics like whether a TLD allows second-level registrations or supports DNSSEC/IDN/etc.