mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 00:57:48 +00:00
Bump to v4.11.2.
This commit is contained in:
3
split.js
3
split.js
@@ -1,3 +1,4 @@
|
||||
import baseToString from './_baseToString';
|
||||
import castSlice from './_castSlice';
|
||||
import isIterateeCall from './_isIterateeCall';
|
||||
import isRegExp from './isRegExp';
|
||||
@@ -46,7 +47,7 @@ function split(string, separator, limit) {
|
||||
typeof separator == 'string' ||
|
||||
(separator != null && !isRegExp(separator))
|
||||
)) {
|
||||
separator += '';
|
||||
separator = baseToString(separator);
|
||||
if (separator == '' && reHasComplexSymbol.test(string)) {
|
||||
return castSlice(stringToArray(string), 0, limit);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user