PDF url fixes from nxmehta in the forums

This commit is contained in:
Matt Burton 2009-03-31 23:21:26 +00:00
parent ff5631d9ec
commit 12229b3509
2 changed files with 2 additions and 1 deletions

View file

@ -62,6 +62,7 @@ function scrape(doc) {
var typeLink;
while(typeLink = typeLinks.iterateNext()) {
var linkText = typeLink.textContent.toLowerCase();
linkText = linkText.replace(/(\t|\n| )/g, "");
if(linkText == "pdf") {
attachments.push({title:"ACM Full Text PDF", mimeType:"application/pdf", url:typeLink.href});
url = typeLink.href;