Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Update Lodash -> 3.10.0 #11474

Merged
merged 6 commits into from
Jul 31, 2015
Merged

Update Lodash -> 3.10.0 #11474

merged 6 commits into from
Jul 31, 2015

Conversation

marcelgerber
Copy link
Contributor

Addresses #10550.

Updates Lodash from 2.4.1 to 3.10.0 (see changelog: https://github.com/lodash/lodash/wiki/Changelog#v300), which includes breaking changes. For more information, see #10550.

@@ -135,7 +135,7 @@ define(function (require, exports, module) {

if (highlightEndCh <= MAX_DISPLAY_LENGTH) {
// Don't store more than 200 chars per line
line = line.substr(0, Math.min(MAX_DISPLAY_LENGTH, line.length));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is the limit removed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, it was meant to be the other way round.
I've just pushed a fix.

@abose
Copy link
Contributor

abose commented Jul 31, 2015

Was thinking why the min was removed, so http://www.ecma-international.org/ecma-262/6.0/#sec-string.prototype.substr the ecma spec confirms that This is how it works. Merging.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants