Skip to content

Commit

Permalink
Fixing the output of utility.explode()
Browse files Browse the repository at this point in the history
  • Loading branch information
avoidwork committed Dec 22, 2017
1 parent 15869fe commit 0cab749
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/utility.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function trim (obj) {
}

function explode (obj, arg = ",") {
return trim(obj).split(new RegExp(`\s*${arg}\s*`));
return trim(obj).split(new RegExp(`\s*${arg}`)).map(i => trim(i));
}

function capitalize (obj, each = false, delimiter = " ") {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "tenso",
"description": "Tensō is an elastic REST API gateway for node.js",
"version": "6.2.9",
"version": "6.2.10",
"homepage": "http://avoidwork.github.io/tenso",
"author": "Jason Mulligan <[email protected]>",
"repository": {
Expand Down

0 comments on commit 0cab749

Please sign in to comment.