edit source

This commit is contained in:
jeffy-g
2017-04-06 03:37:40 +09:00
parent dd88d64d67
commit d4d69522f5
2 changed files with 2 additions and 2 deletions

View File

@@ -478,7 +478,7 @@ class Port(object):
firstLine = firstLine.strip()
# If XML-style start of tag encountered, detect as XML
if re.match(RE_XML_START, firstLine):
if re.search(RE_XML_START, firstLine):
if encoding:
return "XML", cls.importXml(string, iportuser, encoding)
else: