]> git.openstreetmap.org Git - osqa.git/commitdiff
fixes OSQA-562, Mixed-up markdown mangling of simple comment text
authorhernani <hernani@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Wed, 9 Feb 2011 11:44:46 +0000 (11:44 +0000)
committerhernani <hernani@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Wed, 9 Feb 2011 11:44:46 +0000 (11:44 +0000)
git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@758 0cfe37f9-358a-4d5e-be75-b63607b5c754

forum/utils/userlinking.py

index 39f8bbbe6a3de28d385914f96f6e2ff5cda35c27..da476ee9cc9bf58c07d5f1d34ecb74e1b07aee13 100644 (file)
@@ -17,7 +17,7 @@ def find_best_match_in_name(content,  uname,  fullname,  start_index):
             
     return uname    
 
-APPEAL_PATTERN = re.compile(r'@\w+')
+APPEAL_PATTERN = re.compile(r'(?<!\w)@\w+')
 
 def auto_user_link(node, content):