Use strip() instead of rstrip() when checking duplicate URLs

See
https://github.com/guardicore/monkey/pull/1955#discussion_r879351986
for more details.
This commit is contained in:
Mike Salvatore 2022-05-23 09:09:52 -04:00 committed by vakarisz
parent 4b9fe6a83d
commit 0dc1bfc9f5
1 changed files with 1 additions and 1 deletions

View File

@ -138,7 +138,7 @@ class FlaskDIWrapper:
@staticmethod
def _format_url(url: str):
new_url = url.rstrip("/")
new_url = url.strip("/")
return FlaskDIWrapper.url_parameter_regex.sub("<PARAMETER_PLACEHOLDER>", new_url)