diff --git a/links.py b/links.py index 8ecff09..83c0cd6 100644 --- a/links.py +++ b/links.py @@ -27,7 +27,9 @@ for filename in os.listdir(): # open file and search for all outgoing links file = open(filename) for line in file: - m=re.search("^[%^]+\{.+\}",line) + if re.match("%",line) != None: # skip uxn macros (!) + continue + m=re.search("\{.+\}",line) if m: match = m.group(0) # get matched string if match not in incoming: # create a new set for that page