1
0
mirror of https://github.com/checktheroads/hyperglass synced 2024-05-11 05:55:08 +00:00

improve example validation

This commit is contained in:
checktheroads
2020-04-13 01:02:50 -07:00
parent e526ac29d1
commit 7d102c690a

View File

@@ -26,7 +26,6 @@ def _uncomment_files():
output = []
with file.open("r") as f:
for line in f.readlines():
# if re.match(r"^(#\s+[a-z0-9]+)|(#\s+\-\s.*$)|(#\s#\s.*$)", line):
commented = re.compile(r"^(#\s*#?\s?).*$")
if re.match(commented, line):
output.append(re.sub(r"^#\s*#?\s?$", "", line))