-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix corner case: contains_substring_ignoring_case
In contains_substring_ignoring_case, if the string that we are looking for is longer than the source string, return with string not found. Earlier the char array index went out of bounds due to invalid arthimetic operation on the index. Tested and found the method working as expected. Signed-off-by: deepakala-k <deepakala.karthikeyan@ibm.com>
- Loading branch information
1 parent
f429a97
commit 27d6f77
Showing
1 changed file
with
25 additions
and
8 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