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

Suggest-a-spec #709

Merged
merged 2 commits into from Mar 23, 2024
Merged

Suggest-a-spec #709

merged 2 commits into from Mar 23, 2024

Conversation

ddbeck
Copy link
Collaborator

@ddbeck ddbeck commented Mar 19, 2024

I am often forgetting to set the level for CSS specs. This does an OK job of suggesting something better in those cases. We might extend this further to catch typos and the like.

I am often forgetting to set the level for CSS specs. This does an OK
job of suggesting something better in those cases. We might extend this
further to catch typos and the like.
scripts/specs.ts Outdated Show resolved Hide resolved
* Print an array of potential spec URLs.
*/
function suggestSpecs(bad: URL): void {
const searchBy = bad.pathname.replaceAll("/", "");
Copy link
Collaborator

Choose a reason for hiding this comment

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

This won't work very well for a case like https://www.ietf.org/archive/id/draft-zern-webp-13.html where searchBy becomes "archiveiddraft-zern-webp-13.html", but it will certainly do the trick for the common case of not knowing which number to put after the dash in CSS specs.

We can improve this further if there's another category of bad spec URLs that keeps coming up.

@foolip foolip merged commit 2cc5c83 into web-platform-dx:main Mar 23, 2024
2 checks passed
@ddbeck ddbeck deleted the suggest-a-spec branch March 24, 2024 17:07
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.

None yet

2 participants