Previously, if your name was "Paul Craig" and your familyOption string was "Julia Craig, Kevin Craig" we would have:
Paul Craig Julia Craig, Kevin Craig
Now we will have
Paul Craig, Julia Craig, Kevin Craig
This doesn't solve every case, but I would assume it's an improvement in the vast majority of cases.
Note: Since options.formValues is an object we keep in memory between function calls, we have to check that a comma and a space have not already been prepended.
Previously, if your name was "Paul Craig" and your familyOption string was "Julia Craig, Kevin Craig" we would have:
Paul Craig Julia Craig, Kevin Craig
Now we will have
Paul Craig, Julia Craig, Kevin Craig
This doesn't solve every case, but I would assume it's an improvement in the vast majority of cases.
Note: Since
options.formValues
is an object we keep in memory between function calls, we have to check that a comma and a space have not already been prepended.This closes #443