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
Strip webappsec-
from filenames
#142
Comments
The GitHub repository and URL of the Feature Policy spec changed to: https://w3c.github.io/webappsec-feature-policy/ Reffy creates a `webappsec-feature-policy.idl` file as a result.
@dontcallmedom do you think this would make sense? |
absolutely; can you submit a pull request to that effect? if not, I'll try to look into it later |
At what level should this be done? When determining a shortname from URL, or when making a filename from the shortname? Code pointers? :) |
I would say in getShortname - https://github.com/tidoust/reffy/blob/f08fd79a4e294590d4844c0308b7e2a2dfc3a754/src/cli/crawl-specs.js#L401 |
Do you know if the |
Ì think the one you care about is |
w3c/webref@cc0a43d renamed feature-policy.idl to webappsec-feature-policy.idl based on the new spec URL.
However, it seems a virtual certainty that the eventual shortname will be feature-policy, because the URL if any will be http://w3.org/TR/feature-policy/ and not http://w3.org/TR/webappsec-feature-policy/.
Flip-flopping the name back and forth would be frustrating, and there aren't any other files in reffy-reports with this prefix.
My suggestion, therefore, is to strip
webappsec-
as a prefix.The text was updated successfully, but these errors were encountered: