Fix link parsing
This commit is contained in:
parent
db18cc0872
commit
4fc0316e85
|
@ -25,7 +25,7 @@ def processTranscript(r,dir_style=1):
|
||||||
text = [re.sub("''.*''","",x) for x in text]
|
text = [re.sub("''.*''","",x) for x in text]
|
||||||
elif dir_style==2:
|
elif dir_style==2:
|
||||||
text = [re.sub("\([^)]*\)","",x).replace(" "," ") for x in text]
|
text = [re.sub("\([^)]*\)","",x).replace(" "," ") for x in text]
|
||||||
text = [re.sub(r"\[\[[^|]*\|(.*)\]\]",r"\g<1>",x).replace("[[","").replace("]]","") for x in text]
|
text = [re.sub(r"\[\[[^|]*\|([^\]]+)\]\]",r"\g<1>",x).replace("[[","").replace("]]","") for x in text]
|
||||||
return "\n".join(text)
|
return "\n".join(text)
|
||||||
|
|
||||||
def normalize(t):
|
def normalize(t):
|
||||||
|
|
Loading…
Reference in New Issue