mirror of
https://github.com/webrecorder/pywb.git
synced 2025-03-15 00:03:28 +01:00
rewrite: strip www redir check: use re.MULTILINE to include urls that may have a \r
This commit is contained in:
parent
98e8a75920
commit
4cdb99f415
@ -34,7 +34,7 @@ class CaptureException(WbException):
|
||||
|
||||
#=================================================================
|
||||
class ReplayView(object):
|
||||
STRIP_SCHEME_WWW = re.compile('^([\w]+:[/]*(?:www[\d]*\.)?)?(.*?)$')
|
||||
STRIP_SCHEME_WWW = re.compile('^([\w]+:[/]*(?:www[\d]*\.)?)?(.*?)$', re.MULTILINE)
|
||||
|
||||
def __init__(self, content_loader, config):
|
||||
self.content_loader = content_loader
|
||||
|
Loading…
x
Reference in New Issue
Block a user