Skip to content

Commit

Permalink
no need for objects
Browse files Browse the repository at this point in the history
  • Loading branch information
shish committed Nov 9, 2008
1 parent 752e7bd commit bdaa90b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cview.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ else if(interface == "apache") {
books_html = sjax(root+"/");
books_lines = books_html.split("\n");
for(i=0; i<books_lines.length; i++) {
var re = new RegExp(/<A HREF="([^/"]+)/">/i);
var re = /<A HREF="([^/"]+)/">/i;
var m = re.exec(books_lines[i]);
if(m != null) {
books.push(m[1]);
Expand All @@ -72,7 +72,7 @@ else if(interface == "apache") {
chaps_html = sjax(root+"/"+book+"/");
chaps_lines = chaps_html.split("\n");
for(i=0; i<chaps_lines.length; i++) {
var re = new RegExp(/<A HREF="([^/"]+)/">/i);
var re = /<A HREF="([^/"]+)/">/i;
var m = re.exec(chaps_lines[i]);
if(m != null) {
chaps.push(m[1]);
Expand All @@ -85,7 +85,7 @@ else if(interface == "apache") {
pages_html = sjax(root+"/"+book+"/"+chap+"/");
pages_lines = pages_html.split("\n");
for(i=0; i<pages_lines.length; i++) {
var re = new RegExp(/<A HREF="([^/"]+(jpg|png|gif))">/i);
var re = /<A HREF="([^/"]+(jpg|png|gif))">/i;
var m = re.exec(pages_lines[i]);
if(m != null) {
pages.push(m[1]);
Expand Down

0 comments on commit bdaa90b

Please sign in to comment.