Skip to content

Commit d0f5c69

Browse files
knownun3rd-Eden
authored andcommittedApr 12, 2019
Fix location argument, redirecting to regular expression (#173)
1 parent b21a365 commit d0f5c69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ var required = require('requires-port')
1414
* @public
1515
*/
1616
function trimLeft(str) {
17-
return (str || '').replace(left, '');
17+
return (str ? str.toString() : '').replace(left, '');
1818
}
1919

2020
/**

0 commit comments

Comments
 (0)
Please sign in to comment.