Browse Source
Merge pull request #1064 from luncheon/fix-case-insensitive-search
fix: case-insensitive search becomes case-sensitive
master
mengshukeji
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
14 additions and
4 deletions
-
src/controllers/searchReplace.js
|
|
@ -450,6 +450,7 @@ const luckysheetSearchReplace = { |
|
|
|
} |
|
|
|
} |
|
|
|
else{ |
|
|
|
if(caseCheck){ |
|
|
|
if(~value.indexOf(searchText)){ |
|
|
|
if(!((r + "_" + c) in obj)){ |
|
|
|
obj[r + "_" + c] = 0; |
|
|
@ -457,6 +458,15 @@ const luckysheetSearchReplace = { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
else{ |
|
|
|
if(~value.toLowerCase().indexOf(searchText.toLowerCase())){ |
|
|
|
if(!((r + "_" + c) in obj)){ |
|
|
|
obj[r + "_" + c] = 0; |
|
|
|
arr.push({"r": r, "c": c}); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|