Refactor: re.match --> re.fullmatch
This commit is contained in:
parent
5e90758f39
commit
58d0955392
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user