Skip to content

Commit

Permalink
fix3
Browse files Browse the repository at this point in the history
  • Loading branch information
pavly-gerges committed Jul 2, 2021
1 parent 2184351 commit 1398ec0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ public String[] search(String[] searchList, String[] searchKeyWords, ActionInjec
for (String keyword : searchKeyWords) {
if (searchList[pos].replaceAll(" ","").trim().toLowerCase().contains(keyword.replaceAll(" ","").trim().toLowerCase())) {
//dynamic array conception
if(pos > resultList[0].length){
if(pos >= resultList[0].length){
resultList[0] = Arrays.copyOf(resultList[0], resultList[0].length+1);
}
resultList[0][pos] = searchList[pos];
Expand Down

0 comments on commit 1398ec0

Please sign in to comment.