skip uxn macros
This commit is contained in:
parent
07f0652534
commit
584f0776f7
4
links.py
4
links.py
|
@ -27,7 +27,9 @@ for filename in os.listdir():
|
||||||
# open file and search for all outgoing links
|
# open file and search for all outgoing links
|
||||||
file = open(filename)
|
file = open(filename)
|
||||||
for line in file:
|
for line in file:
|
||||||
m=re.search("^[%^]+\{.+\}",line)
|
if re.match("%",line) != None: # skip uxn macros (!)
|
||||||
|
continue
|
||||||
|
m=re.search("\{.+\}",line)
|
||||||
if m:
|
if m:
|
||||||
match = m.group(0) # get matched string
|
match = m.group(0) # get matched string
|
||||||
if match not in incoming: # create a new set for that page
|
if match not in incoming: # create a new set for that page
|
||||||
|
|
Loading…
Reference in New Issue