Thanks for this great module - it makes it very easy to import data into profiles from a CSV file.
I am having one problem though - I imported a list of users and wanted to make their email address the login id, but the the generated username for an email like joe.smith@gmail.com ends up as
"joe smith@gmail com"
with spaces.
Is there any way to suppress this behaviour? I am using pathauto and set it to ignore characters like the dot.
Thanks in advance
Comments
Comment #1
mcsnolte commentedLooks like this is a problem with the function "_user_import_sanitise_username". It is running the following regex's:
However, spaces are not allowed in Drupal usernames (only periods, hyphens, and underscores). This should probably be updated to something like:
I'm not sure what the consensus is on multiple delimiters in a row, but my feeling is that you wouldn't want multiple periods, hyphens, and underscores in a row.
Comment #2
robert castelo commentedShould be fixed in 5.x-2.0-beta1, please re-open this issue if you can still replicate the bug.