Refactor: re.match --> re.fullmatch

This commit is contained in:
Glutanimate 2019-03-03 17:04:01 +01:00
parent 5e90758f39
commit 58d0955392

View File

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