This commit is contained in:
Kovid Goyal 2013-02-15 10:05:53 +05:30
parent c39f8b3cdf
commit 5d8a492b00

View File

@ -15,7 +15,7 @@ __all__ = ['titlecase']
__version__ = '0.5' __version__ = '0.5'
SMALL = 'a|an|and|as|at|but|by|en|for|if|in|of|on|or|the|to|v\.?|via|vs\.?' SMALL = 'a|an|and|as|at|but|by|en|for|if|in|of|on|or|the|to|v\.?|via|vs\.?'
PUNCT = r"""!"#$%&'()*+,\–—―./:;?@[\\\]_`{|}~""" PUNCT = r"""!"#$%&'()*+,\-–—―./:;?@[\\\]_`{|}~"""
SMALL_WORDS = re.compile(r'^(%s)$' % SMALL, re.I) SMALL_WORDS = re.compile(r'^(%s)$' % SMALL, re.I)
INLINE_PERIOD = re.compile(r'[a-z][.][a-z]', re.I) INLINE_PERIOD = re.compile(r'[a-z][.][a-z]', re.I)