X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/0a3c3827859e504fec64ca44a83ed2686ee318d5..1620c839a22c537a8b3f7a6391172c5f4ff86fb5:/nominatim/tokenizer/sanitizers/split_name_list.py diff --git a/nominatim/tokenizer/sanitizers/split_name_list.py b/nominatim/tokenizer/sanitizers/split_name_list.py index 13921c3e..c9db0a9d 100644 --- a/nominatim/tokenizer/sanitizers/split_name_list.py +++ b/nominatim/tokenizer/sanitizers/split_name_list.py @@ -11,13 +11,11 @@ Arguments: delimiters: Define the set of characters to be used for splitting the list. (default: ',;') """ -from nominatim.tokenizer.sanitizers.helpers import create_split_regex - -def create(func): +def create(config): """ Create a name processing function that splits name values with multiple values into their components. """ - regexp = create_split_regex(func) + regexp = config.get_delimiter() def _process(obj): if not obj.names: