There was an error while loading. Please reload this page.
2 parents 1c556fa + a064f09 commit 9d2e55eCopy full SHA for 9d2e55e
1 file changed
flamingo/plugins/redirects.py
@@ -15,7 +15,7 @@
15
16
class RedirectRulesParser(ContentParser):
17
FILE_EXTENSIONS = ['rr']
18
- RULE_RE = re.compile(r'^(?P<code>[0-9]+)(\s{1,})(?P<src>[^ ]+)(\s{1,})(?P<dst>[^ \n]+)$') # NOQA
+ RULE_RE = re.compile(r'^(?P<code>[0-9]+)(\s{1,})(?P<src>[^\s]+)(\s{1,})(?P<dst>[^\s]+)$') # NOQA
19
20
def parse(self, file_content, content):
21
content['output'] = '/dev/null'
0 commit comments