Skip to content
Snippets Groups Projects
Commit addc8ca8 authored by Johan Sundström's avatar Johan Sundström
Browse files

Fixed the search javascript, which was a bit broken.

Rev: tutorial/html.pike:1.40
parent 8a8c3ad7
No related branches found
No related tags found
No related merge requests found
......@@ -345,6 +345,7 @@ function do_search()
matches=0;
for(a in f) {
a+='';
i=a.indexOf(text);
if(i != -1 && (i==0 || a.charAt(i-1)=='.') && (i+text.length == a.length || a.charAt(i+text.length) == '.')) {
found=f[a];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment