Part 1/? for #926

This commit is contained in:
Imre Kristoffer Eilertsen
2023-10-13 00:19:56 +02:00
committed by GitHub
parent 805cd0f9fb
commit 9b3b54bed4
+6
View File
@@ -951,6 +951,12 @@ def prepare_agh(lines) -> str:
line
)
line = re.sub(
r"^/([a-z0-9]{1,8}\.)$",
r"://\1",
line
)
if is_supported_agh(line) and not line == '':
text += line + '\n'