You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes the repo name is being empty in the bubble chat in the extension. this is happening due the repo name detector logic we have in this line of code:
The problem is there is a trailing slash when you go to that link, e.g. https://github.com/ahmadbilaldev/langui/, so the only thing after the last slash is nothing which is why you end up with an empty string.
So we need to cover the use cases of when there is a trailing slash, and when there isn't. Also, you can use window.location.pathname as that will give you e.g. /ahmadbilaldev/langui/ from https://github.com/ahmadbilaldev/langui/.
Describe the bug
Sometimes the repo name is being empty in the bubble chat in the extension. this is happening due the repo name detector logic we have in this line of code:
This is happening when the URL has a slash at the end of it.
Steps to reproduce
Browsers
No response
Additional context (Is this in dev or production?)
No response
Code of Conduct
Contributing Docs
The text was updated successfully, but these errors were encountered: