Skip to content
Snippets Groups Projects
Commit 894ba03e authored by Alán Muñoz's avatar Alán Muñoz
Browse files

fix(grouper): remove slash if necessary

parent 9ee20aa8
No related branches found
No related tags found
No related merge requests found
......@@ -103,8 +103,8 @@ class Grouper(ABC):
--------
FIXME: Add docs.
"""
if not path.startswith("/"):
path = "/" + path
if path.startswith("/"):
path = path.strip("/")
# Check the path is in a given signal
sitems = {k: v for k, v in self.signals.items() if path in v.available}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment