]> git.openstreetmap.org Git - nominatim.git/blobdiff - nominatim/tokenizer/sanitizers/split_name_list.py
documentation: clarify osm2pgsql isnt in project directory by default
[nominatim.git] / nominatim / tokenizer / sanitizers / split_name_list.py
index b2a2045fd645c8ce8c42af33c2c8f74fcfcc240e..c9db0a9da83b2e7878133dc5e63e4477dfff29e5 100644 (file)
@@ -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: