Bump to v4.11.0.

This commit is contained in:
John-David Dalton
2016-04-12 22:28:19 -07:00
parent be0bf2681b
commit 63ba93dcb3
28 changed files with 390 additions and 271 deletions

View File

@@ -2,6 +2,12 @@ var arrayReduce = require('./_arrayReduce'),
deburr = require('./deburr'),
words = require('./words');
/** Used to compose unicode capture groups. */
var rsApos = "['\u2019]";
/** Used to match apostrophes. */
var reApos = RegExp(rsApos, 'g');
/**
* Creates a function like `_.camelCase`.
*
@@ -11,7 +17,7 @@ var arrayReduce = require('./_arrayReduce'),
*/
function createCompounder(callback) {
return function(string) {
return arrayReduce(words(deburr(string)), callback, '');
return arrayReduce(words(deburr(string).replace(reApos, '')), callback, '');
};
}