@lvce-editor/text-search-view 1.17.1 → 1.17.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/settings.json +1 -1
- package/dist/textSearchViewMain.js +4 -1
- package/package.json +1 -1
package/dist/settings.json
CHANGED
|
@@ -3678,7 +3678,10 @@ const openSearchEditor = async state => {
|
|
|
3678
3678
|
const getSearchExcludes = async (fallback = []) => {
|
|
3679
3679
|
try {
|
|
3680
3680
|
const value = await invoke$3('Preferences.get', 'search.exclude');
|
|
3681
|
-
if (
|
|
3681
|
+
if (Array.isArray(value)) {
|
|
3682
|
+
return value.filter(item => typeof item === 'string');
|
|
3683
|
+
}
|
|
3684
|
+
if (!value || typeof value !== 'object') {
|
|
3682
3685
|
return [];
|
|
3683
3686
|
}
|
|
3684
3687
|
const excludes = [];
|