Merge pull request #143 from houdiniproject/fix_for_name_export
Exporting names now works correctly if there's a space in the end of …
This commit is contained in:
commit
2f7ea19622
1 changed files with 3 additions and 3 deletions
|
@ -426,9 +426,9 @@ UNION DISTINCT
|
|||
|
||||
def self.supporter_export_selections
|
||||
[
|
||||
"substring(supporters.name from '^.+ ([^\s]+)$') AS \"Last Name\"",
|
||||
"substring(supporters.name from '^(.+) [^\s]+$') AS \"First Name\"",
|
||||
"supporters.name AS \"Full Name\"",
|
||||
"substring(trim(both from supporters.name) from '^.+ ([^\s]+)$') AS \"Last Name\"",
|
||||
"substring(trim(both from supporters.name) from '^(.+) [^\s]+$') AS \"First Name\"",
|
||||
"trim(both from supporters.name) AS \"Full Name\"",
|
||||
"supporters.organization AS \"Organization\"",
|
||||
"supporters.email \"Email\"",
|
||||
"supporters.phone \"Phone\"",
|
||||
|
|
Loading…
Reference in a new issue