Skip to content

Commit

Permalink
Fix location argument, redirecting to regular expression (#173)
Browse files Browse the repository at this point in the history
  • Loading branch information
knownun authored and 3rd-Eden committed Apr 12, 2019
1 parent b21a365 commit d0f5c69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ var required = require('requires-port')
* @public
*/
function trimLeft(str) {
return (str || '').replace(left, '');
return (str ? str.toString() : '').replace(left, '');
}

/**
Expand Down

0 comments on commit d0f5c69

Please sign in to comment.