File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 22
33var required = require ( 'requires-port' )
44 , qs = require ( 'querystringify' )
5+ , controlOrWhitespace = / ^ [ \x00 - \x20 \u00a0 \u1680 \u2000 - \u200a \u2028 \u2029 \u202f \u205f \u3000 \ufeff ] + /
56 , CRHTLF = / [ \n \r \t ] / g
67 , slashes = / ^ [ A - Z a - z ] [ A - Z a - z 0 - 9 + - . ] * : \/ \/ /
78 , protocolre = / ^ ( [ a - z ] [ a - z 0 - 9 . + - ] * : ) ? ( \/ \/ ) ? ( [ \\ / ] + ) ? ( [ \S \s ] * ) / i
8- , windowsDriveLetter = / ^ [ a - z A - Z ] : /
9- , whitespace = / ^ [ \x00 - \x20 \u00a0 \u1680 \u2000 - \u200a \u2028 \u2029 \u202f \u205f \u3000 \ufeff ] + / ;
9+ , windowsDriveLetter = / ^ [ a - z A - Z ] : / ;
1010
1111/**
1212 * Trim a given string.
@@ -15,7 +15,7 @@ var required = require('requires-port')
1515 * @public
1616 */
1717function trimLeft ( str ) {
18- return ( str ? str : '' ) . toString ( ) . replace ( whitespace , '' ) ;
18+ return ( str ? str : '' ) . toString ( ) . replace ( controlOrWhitespace , '' ) ;
1919}
2020
2121/**
You can’t perform that action at this time.
0 commit comments