Search
Project
General
Profile
Home
Projects
Help
Sign in
Register
Search
:
Redmine
All Projects
Redmine
Overview
Download
Activity
Roadmap
Issues
News
Wiki
Plugins
Forums
Repository
Download (600 Bytes)
Patch #14592
ยป migrate_from_trac.rake.txt
Craig Rodrigues
, 2013-08-01 09:07
Index: migrate_from_trac.rake
===================================================================
--- migrate_from_trac.rake (revision 12072)
+++ migrate_from_trac.rake (working copy)
@@ -249,8 +249,8 @@ namespace :redmine do
if name_attr = TracSessionAttribute.find_by_sid_and_name(username, 'name')
name = name_attr.value
end
- name =~ (/(.*)(\s+\w+)?/)
- fn = $1.strip
+ name =~ (/(\w+)(\s+\w+)?/)
+ fn = ($1 || "-").strip
ln = ($2 || '-').strip
u = User.new :mail => mail.gsub(/[^-@a-z0-9\.]/i, '-'),
(1-1/1)
Loading...