Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
1. Fixed a couple of bugs in allowing TRIM_DEFAULT_LENGTH to be overr…
…idden. 2. Removed unused function set_log_level. 3. Removed unused variable re from the function ends_with 4. Removed unused function log_it. 5. Removed unused function get_numeric_log_level 6. Removed duplicated declaration of m in inflated_attrs
- Loading branch information
Showing
1 changed file
with
4 additions
and
100 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
1 comment
on commit f3132ac
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
This is completely wrong (I think). I was probably thinking of something else.
It should probably be something like: needle.length <= haystack.length ? haystack.substring(haystack.length - needle.length) === needle