You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
convict.addFormat({name: "comma-separated-string",validate: function(val){constemptyStringRegex=/^$/;constcommaSeparatedStringRegex=/^[\w\d]+(,[\w\d]+)*$/;if(!emptyStringRegex.test(val)&&!commaSeparatedStringRegex.test(val)){thrownewError("must be a comma separated string");}},coerce: function(val){if(!val)return[];returnval.split(",");},});
Sry if there is already a ticket, I could not find it.
Is there any way to use arrays in a ENV variable? something like
FOO=1,2,3
?I understand that comma might be a valid char, so maybe have it opt in?
The text was updated successfully, but these errors were encountered: