Skip to content

Commit

Permalink
Merge pull request #238 from islander/patch-1
Browse files Browse the repository at this point in the history
Update hyphenation.py
  • Loading branch information
posativ committed Apr 20, 2015
2 parents e4970fe + c00a3a5 commit 095cca1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion acrylamid/filters/hyphenation.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class Hyphenator:
__version__ = '1.0.20070709'

def __init__(self, chars, patterns, exceptions=''):
self.chars = str('[.' + chars + ']')
self.chars = unicode('[.' + re.escape(chars) + ']')
self.tree = {}
for pattern in patterns.split():
self._insert_pattern(pattern)
Expand Down

0 comments on commit 095cca1

Please sign in to comment.