Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions file-zero.json
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Do we need this file?

Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"ен": "тато"
}
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ private static boolean isUrlOfficial(String baseUrl) {
}

public static boolean isUrlValid(String baseUrl) {
return isUrlForTesting(baseUrl) || isUrlOfficial(baseUrl);
String normalized = StringUtils.removeEnd(baseUrl, "/");
return isUrlForTesting(normalized) || isUrlOfficial(normalized);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,11 @@ private static Stream<Arguments> testIsUrlValid() {
arguments("https://organizzzation.daanya.crowdin.dev"),
arguments("https://daanya.crowdin.dev"),
arguments("https://98011165-2619304c.test.crowdin.com"),
arguments("https://myorg.e-test.crowdin.com")
arguments("https://myorg.e-test.crowdin.com"),
arguments("https://Daanya.crowdin.com/"),
arguments("https://Daanya.api.crowdin.com/"),
arguments("https://organizzzation.daanya.crowdin.dev/"),
arguments("https://myorg.e-test.crowdin.com/")
);
}

Expand Down
Loading