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

fix(transliterator): extraneous closing brace in link formatter #630

Merged
merged 2 commits into from
Dec 1, 2021

Conversation

RomainMuller
Copy link
Contributor

Link formatter includes an extraneous closing brace } at the end of
it, which makes the links invalid (as it typically ends with
?lang=python%2F).


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

Link formatter includes an extraneous closing brace `}` at the end of
it, which makes the links invalid (as it typically ends with
`?lang=python%2F`).
@RomainMuller RomainMuller added the bug Something isn't working label Dec 1, 2021
@RomainMuller RomainMuller requested a review from a team December 1, 2021 09:27
@RomainMuller RomainMuller self-assigned this Dec 1, 2021
@@ -246,7 +246,7 @@ function linkFormatter(type: docgen.TranspiledType): string {
// linking to them.
const hash = sanitize(type.fqn);
const query = `?lang=${type.language.toString()}${type.submodule ? `&submodule=${type.submodule}` : ''}`;
return `/packages/${packageName}/v/${packageVersion}/api/${hash}${query}}`;
return `/packages/${packageName}/v/${packageVersion}/api/${hash}${query}`;
Copy link
Contributor

Choose a reason for hiding this comment

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

oouch!

@mergify mergify bot merged commit 0bd8edc into dev Dec 1, 2021
@mergify mergify bot deleted the rmuller/fix-extraneous-brace-in-links branch December 1, 2021 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants