Update version_branch.yml
This commit is contained in:
6
.github/workflows/version_branch.yml
vendored
6
.github/workflows/version_branch.yml
vendored
@@ -192,8 +192,10 @@ jobs:
|
|||||||
|
|
||||||
# Disallow literal tab (0x09) and other ASCII control characters except LF (0x0A) and CR (0x0D).
|
# Disallow literal tab (0x09) and other ASCII control characters except LF (0x0A) and CR (0x0D).
|
||||||
# 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'\n') + 1
|
return blob[:idx].count(b'
|
||||||
|
') + 1
|
||||||
|
|
||||||
bad = []
|
bad = []
|
||||||
for i, b in enumerate(data):
|
for i, b in enumerate(data):
|
||||||
@@ -343,7 +345,7 @@ 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[ \t]*:[ \t]*)([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\b\b") # word boundary guard
|
manifest_marker_re = re.compile(r"(?is)<extension\b")
|
||||||
xml_version_re = re.compile(r"(?is)(<version[ \t]*>)([^<]*?)(</version[ \t]*>)")
|
xml_version_re = re.compile(r"(?is)(<version[ \t]*>)([^<]*?)(</version[ \t]*>)")
|
||||||
xml_date_res = [
|
xml_date_res = [
|
||||||
re.compile(r"(?is)(<creationDate[ \t]*>)([^<]*?)(</creationDate[ \t]*>)"),
|
re.compile(r"(?is)(<creationDate[ \t]*>)([^<]*?)(</creationDate[ \t]*>)"),
|
||||||
|
|||||||
Reference in New Issue
Block a user