Refactor: re.match --> re.fullmatch

This commit is contained in:
Glutanimate 2019-03-03 17:04:01 +01:00
parent a01679266b
commit 37da78f4c6

View file

@ -156,7 +156,7 @@ class RequestHandler(http.server.SimpleHTTPRequestHandler):
if not pattern:
return path
if not re.match("^{}$".format(pattern), subPath):
if not re.fullmatch(pattern, subPath):
return path
newPath = os.path.join(addMgr.addonsFolder(), addonPath)