Skip to content

Commit

Permalink
Fix RESOLVEUID_RE regexp.
Browse files Browse the repository at this point in the history
  • Loading branch information
cekk committed Aug 29, 2023
1 parent 12c7f19 commit 50ac831
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ Changelog
5.2.2 (unreleased)
------------------

- Nothing changed yet.
- Fix RESOLVEUID_RE regexp.
[cekk]


5.2.1 (2023-08-29)
Expand Down
2 changes: 1 addition & 1 deletion src/redturtle/volto/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,4 @@ def Catalog_sortResults(
Catalog.sortResults = Catalog_sortResults

# patch plone.restapi regexp to catch also other
utils.RESOLVEUID_RE = re.compile(".*?/resolve[Uu]id/([^/]*)/?(.*)$")
utils.RESOLVEUID_RE = re.compile("^(?:|.*/)resolve[Uu]id/([^/]*)/?(.*)$")

0 comments on commit 50ac831

Please sign in to comment.