changeset 2287:0005f996ff92

wikidicts: add comment about (empty) dict entry syntax
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Mon, 02 Jul 2007 23:49:35 +0200
parents 01f05e74aa9c
children 0f44ed5ed2a1
files MoinMoin/wikidicts.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/wikidicts.py	Mon Jul 02 23:33:20 2007 +0200
+++ b/MoinMoin/wikidicts.py	Mon Jul 02 23:49:35 2007 +0200
@@ -62,7 +62,7 @@
        any text ignored
     """
     # Key:: Value - ignore all but key:: value pairs, strip whitespace
-    regex = r'^ (?P<key>.+?):: (?P<val>.*?) *$'
+    regex = r'^ (?P<key>.+?):: (?P<val>.*?) *$' # exactly one space after the :: is required
 
     def initFromText(self, text):
         for match in self.regex.finditer(text):