#2718: Searching for !WikiPageNames keeps the "!" in the highlighted term
---------------------------+------------------------------------------------
Reporter: cboos | Owner: jonas
Type: defect | Status: new
Priority: low | Milestone: 0.10
Component: search system | Version: 0.9.3
Severity: trivial | Resolution:
Keywords: |
---------------------------+------------------------------------------------
Comment (by cboos):
[2910] fixed point 2.
Point 1. can be fixed by:
{{{
#!diff
Index: trac.js
===================================================================
--- trac.js (revision 2918)
+++ trac.js (working copy)
@@ -41,7 +41,9 @@
var param = params[p].split('=');
if (param.length < 2) continue;
if (param[0] == 'q' || param[0] == 'p') { // q= for Google, p= for
Yahoo
- return unescape(param[1].replace(/\+/g, ' ')).split(/\s+/);
+ var searchwords=unescape(param[1]);
+ if (searchwords[0] == '!') searchwords = searchwords.slice(1);
+ return searchwords.replace(/\+/g, ' ').split(/\s+/);
}
}
return [];
}}}
As this conflicts with the patches on #2759, I'll postpone
this until one of those patches are committed.
--
Ticket URL: <http://projects.edgewall.com/trac/ticket/2718>
The Trac Project <http://trac.edgewall.com/>
_______________________________________________
Trac-Tickets mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac-tickets