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

modify pettry link #8658

Merged
merged 3 commits into from
Jul 13, 2021
Merged

modify pettry link #8658

merged 3 commits into from
Jul 13, 2021

Conversation

lyndaidaii
Copy link
Contributor

Summary of the changes (in less than 80 characters):

For all rootsite is not nuget.org, we will not consider to short link as package details page

Addresses https://github.com/NuGet/Engineering/issues/3199

@lyndaidaii lyndaidaii requested a review from a team as a code owner June 24, 2021 06:20
[InlineData("My package is https://www.microsoft.com#https://nuget.org/packages/WindowsAzure.Storage/9.3.1/.", "My package is <a href=\"https://www.microsoft.com/#https://nuget.org/packages/WindowsAzure.Storage/9.3.1/\" rel=\"nofollow\">https://www.microsoft.com/#https://nuget.org/packages/WindowsAzure.Storage/9.3.1/</a>.")]
[InlineData("My package is http://www.microsoft.com#https://nuget.org/packages/WindowsAzure.Storage/9.3.1/.", "My package is <a href=\"https://www.microsoft.com/#https://nuget.org/packages/WindowsAzure.Storage/9.3.1/\" rel=\"nofollow\">https://www.microsoft.com/#https://nuget.org/packages/WindowsAzure.Storage/9.3.1/</a>.")]
[InlineData("My package is https://www.microsoft.com##https://nuget.org/packages/WindowsAzure.Storage/9.3.1/.", "My package is <a href=\"https://www.microsoft.com/##https://nuget.org/packages/WindowsAzure.Storage/9.3.1/\" rel=\"nofollow\">https://www.microsoft.com/##https://nuget.org/packages/WindowsAzure.Storage/9.3.1/</a>.")]
[InlineData("My package is https://www.nuget.org#https://nuget.org/packages/WindowsAzure.Storage/9.3.1/.", "My package is <a href=\"https://www.nuget.org/#https://nuget.org/packages/WindowsAzure.Storage/9.3.1/\" rel=\"nofollow\">https://www.nuget.org/#https://nuget.org/packages/WindowsAzure.Storage/9.3.1/</a>.")]
public void ConvertsPackageUrlsToLinksWithShortText(string input, string expected)
Copy link
Member

Choose a reason for hiding this comment

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

Perhaps I am misunderstanding, but shouldn't these newly added tests be on ConvertsUrlsToLinks since the short text isn't being used?

@lyndaidaii lyndaidaii merged commit 84984d9 into dev Jul 13, 2021
@joelverhagen joelverhagen deleted the prettyLinks branch August 22, 2024 16:35
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.

3 participants