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

CLDR-18032 Tooling for bad urls #4136

Merged

Conversation

macchiati
Copy link
Member

CLDR-18032

Separated off part of a ticket that needed to go to main instead of maint-46.

While this needs further refinement, I'd like to get the basic version into main.

  • This PR completes the ticket.

ALLOW_MANY_COMMITS=true

// }
}

public static boolean doesURLExist(URL url) {
Copy link
Member

@srl295 srl295 Oct 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could use the HttpStatusCache instead, which caches.

but, i'd really rather not rewrite an external link checker here, it would be better to use lychee which already deals with this situation. See #4044 which link checks the spec/rfc - it's only blocked because it would fail until the links were cleaned up.

Copy link
Member

@srl295 srl295 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK for now- I don't think it's the best approach (partially parsing markdown with regex, awkward to use within a unit test) long-term, but ok for now.

@macchiati macchiati merged commit a718b59 into unicode-org:main Oct 18, 2024
13 checks passed
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

Successfully merging this pull request may close these issues.

2 participants