2 Name processor that splits name values with multiple values into their components.
7 """ Create a name processing function that splits name values with
8 multiple values into their components. The optional parameter
9 'delimiters' can be used to define the characters that should be used
10 for splitting. The default is ',;'.
12 regexp = re.compile('[{}]'.format(func.get('delimiters', ',;')))
19 for name in obj.names:
20 split_names = regexp.split(name.name)
21 if len(split_names) == 1:
22 new_names.append(name)
24 new_names.extend(name.clone(name=n) for n in split_names)