Commits

David Cramer committed 7097973

Removed unused smilies var. Fixed greedy flag on quote.

  • Participants
  • Parent commits 6180cb2

Comments (0)

Files changed (2)

File bbcode/__init__.py

     
     
 class TextNode(Node):
-    smilie_pattern = re.compile(':(?P<name>\w+):')
     is_text_node = True
     def __init__(self, parent, text):
         self.text = text

File bbcode/bbtags/text_formatting.py

     [code lang=bbdocs linenos=0][quote]Text[/quote]
 [quote="Foo"]Text[/quote][/code]
     """
-    open_pattern = re.compile(r'(\[quote\]|\[quote[\s=]"?(?P<cite>[^\]]+)"?\])')
+    open_pattern = re.compile(r'(\[quote\]|\[quote[\s=]"?(?P<cite>[^\]]+?)"?\])')
     close_pattern = re.compile(patterns.closing % 'quote')
     
     def parse(self):