lodash.padend
Advanced tools
Comparing version 4.0.0 to 4.0.1
23
index.js
/** | ||
* lodash 4.0.0 (Custom Build) <https://lodash.com/> | ||
* lodash 4.0.1 (Custom Build) <https://lodash.com/> | ||
* Build: `lodash modularize exports="npm" -o ./` | ||
@@ -35,3 +35,4 @@ * Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/> | ||
var rsAstralRange = '\\ud800-\\udfff', | ||
rsComboRange = '\\u0300-\\u036f\\ufe20-\\ufe23', | ||
rsComboMarksRange = '\\u0300-\\u036f\\ufe20-\\ufe23', | ||
rsComboSymbolsRange = '\\u20d0-\\u20f0', | ||
rsVarRange = '\\ufe0e\\ufe0f'; | ||
@@ -41,4 +42,5 @@ | ||
var rsAstral = '[' + rsAstralRange + ']', | ||
rsCombo = '[' + rsComboRange + ']', | ||
rsModifier = '(?:\\ud83c[\\udffb-\\udfff])', | ||
rsCombo = '[' + rsComboMarksRange + rsComboSymbolsRange + ']', | ||
rsFitz = '\\ud83c[\\udffb-\\udfff]', | ||
rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')', | ||
rsNonAstral = '[^' + rsAstralRange + ']', | ||
@@ -57,6 +59,6 @@ rsRegional = '(?:\\ud83c[\\udde6-\\uddff]){2}', | ||
/** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */ | ||
var reComplexSymbol = RegExp(rsSymbol + rsSeq, 'g'); | ||
var reComplexSymbol = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g'); | ||
/** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */ | ||
var reHasComplexSymbol = RegExp('[' + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + ']'); | ||
var reHasComplexSymbol = RegExp('[' + rsZWJ + rsAstralRange + rsComboMarksRange + rsComboSymbolsRange + rsVarRange + ']'); | ||
@@ -69,2 +71,3 @@ /** Built-in method references without a dependency on `global`. */ | ||
* | ||
* @private | ||
* @param {string} string The string to inspect. | ||
@@ -105,3 +108,3 @@ * @returns {number} Returns the string size. | ||
/** Built-in value references. */ | ||
var _Symbol = global.Symbol; | ||
var Symbol = global.Symbol; | ||
@@ -112,4 +115,4 @@ /* Built-in method references for those with the same name as other `lodash` methods. */ | ||
/** Used to convert symbols to primitives and strings. */ | ||
var symbolProto = _Symbol ? _Symbol.prototype : undefined, | ||
symbolToString = _Symbol ? symbolProto.toString : undefined; | ||
var symbolProto = Symbol ? Symbol.prototype : undefined, | ||
symbolToString = Symbol ? symbolProto.toString : undefined; | ||
@@ -347,3 +350,3 @@ /** | ||
if (isSymbol(value)) { | ||
return _Symbol ? symbolToString.call(value) : ''; | ||
return Symbol ? symbolToString.call(value) : ''; | ||
} | ||
@@ -350,0 +353,0 @@ var result = (value + ''); |
{ | ||
"name": "lodash.padend", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"description": "The lodash method `_.padEnd` exported as a module.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://lodash.com/", |
@@ -1,2 +0,2 @@ | ||
# lodash.padend v4.0.0 | ||
# lodash.padend v4.0.1 | ||
@@ -18,2 +18,2 @@ The [lodash](https://lodash.com/) method `_.padEnd` exported as a [Node.js](https://nodejs.org/) module. | ||
See the [documentation](https://lodash.com/docs#padEnd) or [package source](https://github.com/lodash/lodash/blob/4.0.0-npm-packages/lodash.padend) for more details. | ||
See the [documentation](https://lodash.com/docs#padEnd) or [package source](https://github.com/lodash/lodash/blob/4.0.1-npm-packages/lodash.padend) for more details. |
12942
346