mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 17:34:18 +03:00
apibuild: remove 'v' from pattern matching
This makes it mandatory to *not* add 'v' to version numbers. Signed-off-by: Victor Toso <victortoso@redhat.com> Reviewed-by: Andrea Bolognani <abologna@redhat.com>
This commit is contained in:
parent
dddf047dd1
commit
f3d4102d67
@ -2218,7 +2218,7 @@ class docBuilder:
|
||||
return_comment="") -> (str, str, str):
|
||||
since = ""
|
||||
if comment is not None:
|
||||
comment_match = re.search(r"\(?Since: v?(\d+\.\d+\.\d+\.?\d?)\)?",
|
||||
comment_match = re.search(r"\(?Since: (\d+\.\d+\.\d+\.?\d?)\)?",
|
||||
comment)
|
||||
if comment_match:
|
||||
# Remove Since tag from the comment
|
||||
@ -2229,7 +2229,7 @@ class docBuilder:
|
||||
since = comment_match.group(1)
|
||||
|
||||
if since == "" and return_comment is not None:
|
||||
return_match = re.search(r"\(?Since: v?(\d+\.\d+\.\d+\.?\d?)\)?",
|
||||
return_match = re.search(r"\(?Since: (\d+\.\d+\.\d+\.?\d?)\)?",
|
||||
return_comment)
|
||||
if return_match:
|
||||
# Remove Since tag from the comment
|
||||
|
Loading…
Reference in New Issue
Block a user