mirror of
https://github.com/checktheroads/hyperglass
synced 2024-05-11 05:55:08 +00:00
improve example validation
This commit is contained in:
@@ -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))
|
||||
|
Reference in New Issue
Block a user