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

[main] remove double slash for endPointUrl #2174

Merged
merged 3 commits into from
Oct 13, 2023

Conversation

siyuniu-ms
Copy link
Contributor

for issue #2163

@@ -37,6 +37,10 @@ export function parseConnectionString(connectionString?: string): ConnectionStri

// apply the default endpoints
result.ingestionendpoint = result.ingestionendpoint || DEFAULT_BREEZE_ENDPOINT;

if (strEndsWith(result.ingestionendpoint, "/")) {
result.ingestionendpoint = result.ingestionendpoint.slice(0,-1);
Copy link
Collaborator

Choose a reason for hiding this comment

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

We probably should also do this for the snippet as well, although we won't be able to use strEndsWith in the snippet or the string endsWith as it's not supported on IE and the snippet needs to work for IE :-(.

nit: I don't normally use slice on strings, but it works for this case and it's available on all browsers.

@siyuniu-ms siyuniu-ms requested a review from MSNev October 13, 2023 22:02
@siyuniu-ms siyuniu-ms merged commit c09995a into main Oct 13, 2023
8 checks passed
@siyuniu-ms siyuniu-ms deleted the siyu/investigateDoubleSlash branch October 13, 2023 23:41
@siyuniu-ms siyuniu-ms added this to the 3.0.4 milestone Oct 19, 2023
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.

2 participants