@@ -230,11 +230,11 @@ export default defineComponent({
230230 search_initialized: false ,
231231
232232 search: {
233- branch: { value: " " , contains : true },
234- description: { value: " " , contains : true },
235- repository: { value: " " , contains : true , postfix: " __name" },
236- revision: { value: " " , contains : true },
237- tools: { value: " " , contains : true , postfix: " __name" },
233+ branch: { value: " " , icontains : true },
234+ description: { value: " " , icontains : true },
235+ repository: { value: " " , icontains : true , postfix: " __name" },
236+ revision: { value: " " , icontains : true },
237+ tools: { value: " " , icontains : true , postfix: " __name" },
238238 limit: { value: " 10" , contains: false },
239239 },
240240
@@ -281,6 +281,7 @@ export default defineComponent({
281281 // TODO: This is a shortcut that saves us iterating through this.search
282282 // for every key that we are trying to map to a field in our search
283283 // object, but this won't work once we have more postfixes.
284+ k = k .replace (/ __icontains$ / , " " );
284285 k = k .replace (/ __contains$ / , " " );
285286 k = k .replace (/ __name$ / , " " );
286287
@@ -304,7 +305,9 @@ export default defineComponent({
304305 k += obj .postfix ;
305306 }
306307
307- if (" contains" in obj && obj .contains ) {
308+ if (" icontains" in obj && obj .icontains ) {
309+ k += " __icontains" ;
310+ } else if (" contains" in obj && obj .contains ) {
308311 k += " __contains" ;
309312 }
310313
0 commit comments