psolin / cleanco

Company Name Processor written in Python
MIT License
322 stars 95 forks source link

stripping of suffix fails if it ends in full stop. #21

Closed petri closed 8 years ago

petri commented 8 years ago

Same happens if the ending character is a comma. Example:

>>> from cleanco import cleanco
>>> y='posnegansett properties, llc.'
>>> ya=cleanco(y)
print ya.type()
['Limited Liability Company']
>>> print ya.clean_name()
posnegansett properties, llc

The result should not have the 'llc' suffix.

psolin commented 8 years ago

Fixed.