Skip to content

Commit

Permalink
Techdebt: Simplify GreenGrass responses (#7633)
Browse files Browse the repository at this point in the history
  • Loading branch information
bblommers committed Apr 27, 2024
1 parent b10de22 commit 278aefb
Show file tree
Hide file tree
Showing 3 changed files with 133 additions and 548 deletions.
2 changes: 1 addition & 1 deletion moto/core/responses.py
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ def uri_to_regexp(self, uri: str) -> str:

def _convert(elem: str, is_last: bool) -> str:
if not re.match("^{.*}$", elem):
return elem
return elem.replace("$", r"\$")
name = (
elem.replace("{", "")
.replace("}", "")
Expand Down
Loading

0 comments on commit 278aefb

Please sign in to comment.