mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 507405 - Fix filename parsing to handle two-, three- and four-part version strings (NPOTB) - r=bhearsum
This commit is contained in:
parent
d80fec6ac6
commit
0ecd200643
@ -340,7 +340,7 @@ def decode_filename(filepath):
|
||||
"""
|
||||
try:
|
||||
m = re.search(
|
||||
'(?P<product>\w+)(-)(?P<version>\w+\.\w+)(\.)(?P<locale>.+?)(\.)(?P<platform>.+?)(\.)(?P<type>\w+)(.mar)',
|
||||
'(?P<product>\w+)(-)(?P<version>\w+\.\w+(\.\w+){0,2})(\.)(?P<locale>.+?)(\.)(?P<platform>.+?)(\.)(?P<type>\w+)(.mar)',
|
||||
os.path.basename(filepath))
|
||||
return m.groupdict()
|
||||
except Exception, exc:
|
||||
|
Loading…
Reference in New Issue
Block a user