Skip to content

Commit

Permalink
Add wildcard to the correct regex and remove it from the one that doe…
Browse files Browse the repository at this point in the history
…sn't need it

Signed-off-by: Scott Williams <[email protected]>
  • Loading branch information
vwbusguy committed Sep 16, 2024
1 parent 19ad045 commit 8a89d93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nc_py_api/files/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@

from .. import _misc

user_regex = re.compile(r".*?files/([^/]+)/")
user_regex = re.compile(r"files/([^/]+)/")
"""Regex for evaluating user from full path string; instantiated once on import."""
user_path_regex = re.compile(r"files/([^/]+)/")
user_path_regex = re.compile(r".*?files/([^/]+)/")
"""Regex for evaluating user path from full path string; instantiated once on import."""


Expand Down

0 comments on commit 8a89d93

Please sign in to comment.