Encapsulated Windows file separator for proper regex parsing

pull/7092/head
Cruz Monrreal II 2018-05-31 08:00:02 -05:00
parent d364d367fe
commit 8b5a7600c4
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ class _Parser(object):
class _GccParser(_Parser):
RE_OBJECT_FILE = re.compile(r'^(.+\/.+\.o)$')
RE_LIBRARY_OBJECT = re.compile(r'^.+' + sep + r'lib((.+\.a)\((.+\.o)\))$')
RE_LIBRARY_OBJECT = re.compile(r'^.+' + re.escape(sep) + r'lib((.+\.a)\((.+\.o)\))$')
RE_STD_SECTION = re.compile(r'^\s+.*0x(\w{8,16})\s+0x(\w+)\s(.+)$')
RE_FILL_SECTION = re.compile(r'^\s*\*fill\*\s+0x(\w{8,16})\s+0x(\w+).*$')