fix: Math the first numbers group as date from the tag #332
This commit is contained in:
parent
fa4aa722b1
commit
83ac3d43f5
|
@ -10,7 +10,7 @@ args = parser.parse_args()
|
|||
tag = args.tag
|
||||
# A format of the tag is r+yyyyMMdd, we
|
||||
# strip out any non digit symbols here.
|
||||
date_str = re.sub(r'[^\d]', '', tag)
|
||||
date_str = re.match(r'[^\d]*(\d+).*', tag).group(1)
|
||||
date = datetime.strptime(date_str, '%Y%m%d')
|
||||
|
||||
# Release date.
|
||||
|
|
|
@ -10,7 +10,7 @@ args = parser.parse_args()
|
|||
tag = args.tag
|
||||
# A format of the tag is r+yyyyMMdd, we
|
||||
# strip out any non digit symbols here.
|
||||
date_str = re.sub(r'[^\d]', '', tag)
|
||||
date_str = re.match(r'[^\d]*(\d+).*', tag).group(1)
|
||||
date = datetime.strptime(date_str, '%Y%m%d')
|
||||
|
||||
# Release date name.
|
||||
|
|
Loading…
Reference in New Issue