@xuda.io/drive_module 1.1.1126 → 1.1.1128
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/index.js +18 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -122,6 +122,24 @@ exports.get_drive_files = async function (req) {
|
|
|
122
122
|
.filter((e) => e)
|
|
123
123
|
.join(' ');
|
|
124
124
|
|
|
125
|
+
if (new_search) {
|
|
126
|
+
opt.selector = {
|
|
127
|
+
...opt.selector,
|
|
128
|
+
...[
|
|
129
|
+
{
|
|
130
|
+
ocr: {
|
|
131
|
+
$regex: `(?i)${new_search}`,
|
|
132
|
+
},
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
originalname: {
|
|
136
|
+
$regex: `(?i)${new_search}`,
|
|
137
|
+
},
|
|
138
|
+
},
|
|
139
|
+
],
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
|
|
125
143
|
if (mix_conditions) {
|
|
126
144
|
if (new_search) {
|
|
127
145
|
tags_query.$or = [
|