Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't replace substr() with charAt() when the start index is negative
Eg. "foo".substr(-1, 1) is not equivalent to "foo".charAt(-1). Apparently I misread the specs or something. Fixes #2268 on GitHub. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=146431008
- Loading branch information
1 parent
bdfdaed
commit e5437d7
Showing
2 changed files
with
26 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters