Ticket #7324: search-limit.diff
| File search-limit.diff, 630 bytes (added by athomas, 4 years ago) |
|---|
-
trac/htdocs/js/search.js
39 39 var terms = []; 40 40 $.each(query.split(/(".*?")|('.*?')|(\s+)/), function() { 41 41 term = this.replace(/^\s+$/, ""); 42 if (term .length) {42 if (terms.length < 25 && term.length) { 43 43 terms.push(term.replace(/^['"]/, "").replace(/['"]$/, "")); 44 44 } 45 45 }); … … 56 56 }); 57 57 }); 58 58 59 })(jQuery); 60 No newline at end of file 59 })(jQuery);
