feeds: give example of regex

master
pictuga 2018-11-11 15:26:46 +01:00
parent 221e1f85ad
commit c2a6ea7cfe
1 changed files with 1 additions and 1 deletions

View File

@ -260,7 +260,7 @@ class ParserXML(ParserBase):
return test.groups() if test else (rule, None) return test.groups() if test else (rule, None)
def _resolve_ns(self, rule): def _resolve_ns(self, rule):
match = re.search(r'^([^:]+):([^:]+)$', rule) match = re.search(r'^([^:]+):([^:]+)$', rule) # to match fakerss:content
if match: if match:
match = match.groups() match = match.groups()
if match[0] in NSMAP: if match[0] in NSMAP: