Skip to content

Commit

Permalink
Merge pull request #18 from joeeoj/patch-1
Browse files Browse the repository at this point in the history
Remove blank group if trailing semicolon in environ var - #17
  • Loading branch information
cycomachead authored Nov 17, 2016
2 parents c664c7d + fbc5f63 commit abb0e65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/alias.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ buildGroupObject = ->
if !_.isEqual(groupCache, {})
return groupCache
# Create a 1D list of group assignments
staticGroups = config.split(';')
staticGroups = _.without(config.split(';'), '')
# Create 2D list of [alias, users]
staticGroups = _.map(staticGroups, (val, item, array) -> val.split('='))
# expand "user1,user2" to "@user1 @user2"
Expand Down

0 comments on commit abb0e65

Please sign in to comment.