summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2021-08-17 18:23:53 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2021-08-17 18:23:53 +0200
commit3b43617edc08b9b5994dd8bde98439f409b06f78 (patch)
treed4ac9ad771a8b6ad249bf2d0d3ae20bb3340d804
parentChange encoding method for tex labels. (diff)
downloadvimwiki-scripts-3b43617edc08b9b5994dd8bde98439f409b06f78.tar.gz
vimwiki-scripts-3b43617edc08b9b5994dd8bde98439f409b06f78.tar.xz
Make use of pythons regex strings.
-rwxr-xr-xdo.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/do.py b/do.py
index c72cd60..2506f6d 100755
--- a/do.py
+++ b/do.py
@@ -256,7 +256,7 @@ elif mode == 'txt':
page1 = get_heading(heading, data)
# bilagor = get_heading('Bilagor', page1).strip().split('\n')
-r = "\\[\\[([^|#\\]]*)(?:#([^|\\]]*))?(?:[|]([^\\]]*))?\\]\\]"
+r = r"\[\[([^|#\]]*)(?:#([^|\]]*))?(?:[|]([^\]]*))?\]\]"
# bilagor = re.findall(r, page1)
tag_iter = re.finditer(r, page1)