Changeset 244

Show
Ignore:
Timestamp:
12/31/05 12:57:08 (3 years ago)
Author:
cmlenz
Message:

EmoticonsPlugin:

Fix typo introduced in [243]; only match on word boundaries.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • emoticonsplugin/0.9/tracemoticons/__init__.py

    r243 r244  
    3232    ':P': 'razz.png', ':-P': 'razz.png', 
    3333    ':)': 'smile.png', ':-)': 'smile.png', 
    34     ':|': 'stoic.png', ':-|', 'stoic.png', 
     34    ':|': 'stoic.png', ':-|': 'stoic.png', 
    3535    ':O': 'suprised.png', ':o': 'suprised.png', ':-O': 'suprised.png', 
    3636    ':-o': 'suprised.png', 
     
    6464                   escape(src), escape(match.group(0))) 
    6565        pattern = '|'.join([re.escape(pattern) for pattern in EMOTICONS]) 
    66         yield pattern, _replace 
     66        yield '\b' + pattern + '\b', _replace 
    6767 
    6868    def get_link_resolvers(self):