[fix] component

This commit is contained in:
Al
2017-01-11 16:50:54 -05:00
parent ed5dd28023
commit 09b3aeb7d9

View File

@@ -483,7 +483,7 @@ class AddressComponents(object):
total_tokens += 1
if self.parens_regex.search(name):
name = parens_regex.sub(six.u(''), name).strip()
name = self.parens_regex.sub(six.u(''), name).strip()
# If the name contains a comma, stop and only use the phrase before the comma
if ',' in name: