feeds: give example of regex
parent
221e1f85ad
commit
c2a6ea7cfe
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue