Skip to content

Commit

Permalink
[minor] Use more descriptive variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
lpinca committed Feb 20, 2022
1 parent d547792 commit a7044e3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

var required = require('requires-port')
, qs = require('querystringify')
, controlOrWhitespace = /^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/
, CRHTLF = /[\n\r\t]/g
, slashes = /^[A-Za-z][A-Za-z0-9+-.]*:\/\//
, protocolre = /^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i
, windowsDriveLetter = /^[a-zA-Z]:/
, whitespace = /^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/;
, windowsDriveLetter = /^[a-zA-Z]:/;

/**
* Trim a given string.
Expand All @@ -15,7 +15,7 @@ var required = require('requires-port')
* @public
*/
function trimLeft(str) {
return (str ? str : '').toString().replace(whitespace, '');
return (str ? str : '').toString().replace(controlOrWhitespace, '');
}

/**
Expand Down

0 comments on commit a7044e3

Please # to comment.