mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
Refactor: re.match --> re.fullmatch
This commit is contained in:
parent
5e90758f39
commit
58d0955392
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue