Bump to v4.2.1.

This commit is contained in:
John-David Dalton
2016-02-15 12:01:21 -08:00
parent fdf249c94e
commit 3b6af7b0a3
269 changed files with 1098 additions and 1145 deletions

View File

@@ -1,4 +1,4 @@
# lodash.startcase v4.2.0
# lodash.startcase v4.2.1
The [lodash](https://lodash.com/) method `_.startCase` exported as a [Node.js](https://nodejs.org/) module.
@@ -15,4 +15,4 @@ In Node.js:
var startCase = require('lodash.startcase');
```
See the [documentation](https://lodash.com/docs#startCase) or [package source](https://github.com/lodash/lodash/blob/4.2.0-npm-packages/lodash.startcase) for more details.
See the [documentation](https://lodash.com/docs#startCase) or [package source](https://github.com/lodash/lodash/blob/4.2.1-npm-packages/lodash.startcase) for more details.

View File

@@ -1,5 +1,5 @@
/**
* lodash 4.2.0 (Custom Build) <https://lodash.com/>
* lodash 4.2.1 (Custom Build) <https://lodash.com/>
* Build: `lodash modularize exports="npm" -o ./`
* Copyright jQuery Foundation and other contributors <https://jquery.org/>
* Released under MIT license <https://lodash.com/license>
@@ -10,6 +10,12 @@ var deburr = require('lodash.deburr'),
upperFirst = require('lodash.upperfirst'),
words = require('lodash.words');
/** Used to compose unicode capture groups. */
var rsApos = "['\u2019]";
/** Used to match apostrophes. */
var reApos = RegExp(rsApos, 'g');
/**
* A specialized version of `_.reduce` for arrays without support for
* iteratee shorthands.
@@ -44,7 +50,7 @@ function arrayReduce(array, iteratee, accumulator, initAccum) {
*/
function createCompounder(callback) {
return function(string) {
return arrayReduce(words(deburr(string)), callback, '');
return arrayReduce(words(deburr(string).replace(reApos, '')), callback, '');
};
}

View File

@@ -1,6 +1,6 @@
{
"name": "lodash.startcase",
"version": "4.2.0",
"version": "4.2.1",
"description": "The lodash method `_.startCase` exported as a module.",
"homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg",