We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bdcf71f commit 1bd7b18Copy full SHA for 1bd7b18
1 file changed
handwritten/pubsub/src/pubsub.ts
@@ -806,7 +806,7 @@ export class PubSub {
806
807
// Parse the URL into a hostname and port, if possible.
808
const leadingProtocol = new RegExp('^https?://');
809
- const trailingSlashes = new RegExp('/*$');
+ const trailingSlashes = new RegExp('(?<!/)/+$');
810
const baseUrlParts = apiEndpoint!
811
.replace(leadingProtocol, '')
812
.replace(trailingSlashes, '')
0 commit comments