cnpm / cnpmjs.org
Showing 1 of 2 files from the diff.

@@ -23,10 +23,14 @@
Loading
23 23
  }
24 24
25 25
  // package not found
26 -
  m = /^\/package\/([\w\-\_\.]+)\/?$/.exec(this.url);
26 +
  m = /^\/package\/([\w\-\_\.]+)\/?$/.exec(this.path);
27 27
  if (!m) {
28 28
    // scoped packages
29 29
    m = /^\/package\/(@[\w\-\.]+\/[\w\-\.]+)$/.exec(this.path);
30 +
    // maybe encode url: /package/%40foo%2Fawdawda
31 +
    if (!m && this.path.startsWith('/package/%40')) {
32 +
      m = /^\/package\/(@[\w\-\.]+\/[\w\-\.]+)$/.exec(decodeURIComponent(this.path));
33 +
    }
30 34
  }
31 35
  var name = null;
32 36
  var title = '404: Page Not Found';
Files Coverage
common 67.39%
controllers 83.00%
middleware 95.17%
models 89.56%
routes 100.00%
servers 90.91%
services 88.40%
sync 90.91%
config/index.js 76.47%
lib/common.js 88.46%
Project Totals (102 files) 85.56%
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading