Skip to content
Browse files

Merge pull request #238 from islander/patch-1

Update hyphenation.py
  • Loading branch information...
2 parents e4970fe + c00a3a5 commit 095cca1fc5cac1e51eb9dd3d699def2fb6f063a6 @posativ committed Apr 20, 2015
Showing with 1 addition and 1 deletion.
  1. +1 −1 acrylamid/filters/hyphenation.py
View
2 acrylamid/filters/hyphenation.py
@@ -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)

0 comments on commit 095cca1

Please sign in to comment.
Something went wrong with that request. Please try again.