Skip to content

Commit

Permalink
Fix bug with a slash at the end of a url resulting in presets not det…
Browse files Browse the repository at this point in the history
…ecting them
  • Loading branch information
cibere committed Feb 4, 2025
1 parent 25e33bc commit b488887
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ Changelog
=========

- Fix bug with the icon of the autohotkey docs not loading
- Fix bug with a slash at the end of a url resulting in presets not detecting them
- Add unittests to help detect when presets stop working
2 changes: 1 addition & 1 deletion plugin/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ def convert_raw_loc(self, loc: str) -> URL | Path:
async def get_library_from_url(
self, name: str, raw_url: str
) -> Library | PresetLibrary | None:
loc = self.convert_raw_loc(raw_url)
loc = self.convert_raw_loc(raw_url.rstrip("/"))
log.debug("Getting library from url: %r", loc)
is_path: bool = True
if isinstance(loc, URL):
Expand Down

0 comments on commit b488887

Please sign in to comment.