X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/4774e45218bcfcef3390f820ad48b1b67b2bd0c4..a6dab5e300de9c5664f714eb2c9290d18f01067f:/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 b2a2045f..c9db0a9d 100644 --- a/nominatim/tokenizer/sanitizers/split_name_list.py +++ b/nominatim/tokenizer/sanitizers/split_name_list.py @@ -11,14 +11,11 @@ Arguments: delimiters: Define the set of characters to be used for splitting the list. (default: ',;') """ -from nominatim.errors import UsageError -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: