We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4573224 commit e1d3311Copy full SHA for e1d3311
build_link_map.py
@@ -48,11 +48,13 @@ def build_link_map(directory):
48
continue
49
text = m.group(1)
50
text = re.sub(r'\s*', '', text)
51
- m = re.search('"wgPageName":"([^"]*)"', text)
+ m = re.search(r'"wgPageName":"((?:\\"|[^"\\])+)"', text)
52
if not m:
53
54
55
title = m.group(1)
56
+ # unescape quotes in page title
57
+ title = title.replace(r'\"', r'"')
58
59
target = os.path.relpath(os.path.abspath(fn),
60
os.path.abspath(directory))
0 commit comments