Skip to content

Commit

Permalink
build: remove handling of :varname
Browse files Browse the repository at this point in the history
All URLs now use the `{varname}` syntax
  • Loading branch information
wolfy1339 committed Sep 6, 2024
1 parent 390e471 commit 4969ba7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions scripts/update.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,7 @@ async function update(options) {

return {
method,
// replace :varname with {varname} to make it RFC 6570 compatible
// and coherent with current docs
// NOTE: this workaround can be removed once URLs in the docs use {varname}
url: url.replace(/:([a-z]\w+)/g, "{$1}"),
url,
access,
documentationUrl,
};
Expand Down

0 comments on commit 4969ba7

Please sign in to comment.