Update version_branch.yml
This commit is contained in:
15
.github/workflows/version_branch.yml
vendored
15
.github/workflows/version_branch.yml
vendored
@@ -194,8 +194,7 @@ jobs:
|
|||||||
# Report line numbers without printing the raw characters.
|
# Report line numbers without printing the raw characters.
|
||||||
|
|
||||||
def byte_to_line(blob: bytes, idx: int) -> int:
|
def byte_to_line(blob: bytes, idx: int) -> int:
|
||||||
return blob[:idx].count(b'
|
return blob[:idx].count(b'\n') + 1
|
||||||
') + 1
|
|
||||||
|
|
||||||
bad = []
|
bad = []
|
||||||
for i, b in enumerate(data):
|
for i, b in enumerate(data):
|
||||||
@@ -344,13 +343,13 @@ jobs:
|
|||||||
root = Path(".").resolve()
|
root = Path(".").resolve()
|
||||||
|
|
||||||
# Use escape sequences only. Do not introduce literal tab characters.
|
# Use escape sequences only. Do not introduce literal tab characters.
|
||||||
header_re = re.compile(r"(?im)(VERSION[ ]*:[ ]*)([0-9]{2}[.][0-9]{2}[.][0-9]{2})")
|
header_re = re.compile(r"(?im)(VERSION[ \t]*:[ \t]*)([0-9]{2}[.][0-9]{2}[.][0-9]{2})")
|
||||||
manifest_marker_re = re.compile(r"(?is)<extension")
|
manifest_marker_re = re.compile(r"(?is)<extension\b")
|
||||||
xml_version_re = re.compile(r"(?is)(<version[ ]*>)([^<]*?)(</version[ ]*>)")
|
xml_version_re = re.compile(r"(?is)(<version[ \t]*>)([^<]*?)(</version[ \t]*>)")
|
||||||
xml_date_res = [
|
xml_date_res = [
|
||||||
re.compile(r"(?is)(<creationDate[ ]*>)([^<]*?)(</creationDate[ ]*>)"),
|
re.compile(r"(?is)(<creationDate[ \t]*>)([^<]*?)(</creationDate[ \t]*>)"),
|
||||||
re.compile(r"(?is)(<date[ ]*>)([^<]*?)(</date[ ]*>)"),
|
re.compile(r"(?is)(<date[ \t]*>)([^<]*?)(</date[ \t]*>)"),
|
||||||
re.compile(r"(?is)(<releaseDate[ ]*>)([^<]*?)(</releaseDate[ ]*>)"),
|
re.compile(r"(?is)(<releaseDate[ \t]*>)([^<]*?)(</releaseDate[ \t]*>)"),
|
||||||
]
|
]
|
||||||
|
|
||||||
skip_ext = {
|
skip_ext = {
|
||||||
|
|||||||
Reference in New Issue
Block a user