Skip to content

Commit 9d2e55e

Browse files
authored
Merge pull request #53 from SmithChart/plugin-redirects-whitespace
plugins/redirects: Fix tabs are parsed as part of the source
2 parents 1c556fa + a064f09 commit 9d2e55e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

flamingo/plugins/redirects.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
class RedirectRulesParser(ContentParser):
1717
FILE_EXTENSIONS = ['rr']
18-
RULE_RE = re.compile(r'^(?P<code>[0-9]+)(\s{1,})(?P<src>[^ ]+)(\s{1,})(?P<dst>[^ \n]+)$') # NOQA
18+
RULE_RE = re.compile(r'^(?P<code>[0-9]+)(\s{1,})(?P<src>[^\s]+)(\s{1,})(?P<dst>[^\s]+)$') # NOQA
1919

2020
def parse(self, file_content, content):
2121
content['output'] = '/dev/null'

0 commit comments

Comments
 (0)