lib/sdoc/generator/template/shtml/resources/panel/index.html in sdoc-0.2.12.1 vs lib/sdoc/generator/template/shtml/resources/panel/index.html in sdoc-0.2.14
- old
+ new
@@ -32,10 +32,10 @@
$(function() {
placeholder();
var panel = new Searchdoc.Panel($('#panel'), search_data, tree, top.frames[1]);
$('#search').focus();
- var s = window.parent.location.search.match(/\?q=(.*)$/);
+ var s = window.parent.location.search.match(/\?q=([^&]+)/);
if (s) {
s = decodeURIComponent(s[1]).replace(/\+/g, ' ');
if (s.length > 0)
{
$('#search').val(s);