Tweaked person factory ascii name generation to not include periods inside names.
- Legacy-Id: 14875
This commit is contained in:
parent
efb05a7f11
commit
2354cc74d4
|
@ -96,6 +96,7 @@ def unidecode_name(uname):
|
||||||
if name == uname:
|
if name == uname:
|
||||||
return name
|
return name
|
||||||
name = re.sub(' +', ' ', name.strip().replace('@', ''))
|
name = re.sub(' +', ' ', name.strip().replace('@', ''))
|
||||||
|
name = re.sub(r'(\w)\.(\w)', r'\1\2', name)
|
||||||
# Fix all-upper and all-lower names:
|
# Fix all-upper and all-lower names:
|
||||||
# Check for name particles -- don't capitalize those
|
# Check for name particles -- don't capitalize those
|
||||||
m = name_particle_match(name)
|
m = name_particle_match(name)
|
||||||
|
|
Loading…
Reference in a new issue