Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Strip all trailing non alphanumeric characters from Individual names

  • Loading branch information...
commit 843422ae0aeca2c60e9a7486ae1db5589ae3a965 1 parent 5464979
Alison Rowland authored
Showing with 3 additions and 3 deletions.
  1. +2 −2 name_cleaver/name_cleaver.py
  2. +1 −1  setup.py
View
4 name_cleaver/name_cleaver.py
@@ -341,8 +341,8 @@ def separate_affixes(self, name):
name, junk = self.extract_matching_portion(r'(?P<junk_numbers>\b\d{2,}\b)', name)
name, nick = self.extract_matching_portion(r'("[^"]*")', name)
- # strip trailing non alphanumeric characters except period
- name = re.sub(r'[^.a-zA-Z0-9]$', '', name)
+ # strip trailing non alphanumeric characters
+ name = re.sub(r'[^a-zA-Z0-9]$', '', name)
return name, honorific, suffix, nick
View
2  setup.py
@@ -7,7 +7,7 @@
setup(
name='name-cleaver',
- version='0.2.0',
+ version='0.2.1',
description='Name parser and formatter (for politicians, individuals, and organizations)',
long_description=readme,
author='Alison Rowland',
Please sign in to comment.
Something went wrong with that request. Please try again.