skip uxn macros

This commit is contained in:
sejo 2021-07-22 20:10:30 -05:00
parent 07f0652534
commit 584f0776f7
1 changed files with 3 additions and 1 deletions

View File

@ -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