Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Remove per-version descriptions from search index

  • Loading branch information...
commit 5a2161eb2a951a9a3513a988ea2a9e1292beab46 1 parent 946dd81
Isaac Z. Schlueter isaacs authored

Showing 1 changed file with 0 additions and 11 deletions. Show diff stats Hide diff stats

  1. +0 11 registry/app.js
11 registry/app.js
@@ -344,17 +344,6 @@ ddoc.lists.index = function (head, req) {
344 344 if (doc.versions[i].repository && !doc.repository) {
345 345 p.repository = doc.versions[i].repository
346 346 }
347   - var md = p.description
348   - , vd = doc.versions[i].description
349   - md = md && md.toLowerCase().replace(/[^a-z0-9]+/g, " ").trim()
350   - vd = vd && vd.toLowerCase().replace(/[^a-z0-9]+/g, " ").trim()
351   - if (vd && vd !== md) {
352   - p.descriptions = p.descriptions || {}
353   - p.descriptions[i] = doc.versions[i].description
354   - if (!p.description) {
355   - p.description = doc.versions[i].description
356   - }
357   - }
358 347 if (doc.versions[i].keywords) p.keywords = doc.versions[i].keywords
359 348
360 349 p.versions[i] = "http://"+req.headers.Host+"/"+

0 comments on commit 5a2161e

Please sign in to comment.
Something went wrong with that request. Please try again.