mirror of
https://github.com/certbot/certbot.git
synced 2026-06-06 23:32:06 -04:00
Fix regex it
This commit is contained in:
parent
88cb4c8547
commit
4127e2f6cb
1 changed files with 4 additions and 3 deletions
|
|
@ -617,12 +617,13 @@ class ApacheParser(object):
|
|||
"""
|
||||
|
||||
block_paths = [] # type: List[str]
|
||||
# Find blocks in the middle of path as well as in the end
|
||||
block = "/{}(/|$)".format(block)
|
||||
|
||||
# Not found
|
||||
if block.lower() not in path.lower():
|
||||
return block_paths
|
||||
|
||||
# Find blocks in the middle of path as well as in the end
|
||||
block = "/{}(/|$)".format(block)
|
||||
|
||||
startidx = 0
|
||||
found = re.search(block, path[startidx:], flags=re.IGNORECASE)
|
||||
while found:
|
||||
|
|
|
|||
Loading…
Reference in a new issue