Skip to content
Myr

Added normalizePath()

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by visionmedia · committed by visionmedia · parent 0736ed6 · Browse files · 2 files+14 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+14 added−0 removed

  • tests:+10 added−0 removed
  • other:+4 added−0 removed

2 files+14 added−0 removed

modified:lib/express.core.js+4 added
131 unmodified lines
132 param : function(key, defaultValue) {133 return this.request.uri.params[key] || defaultValue134 },135 136 normalizePath : function(path) {137 return path.replace(/^(\s|\/)*|(\s|\/)*$/g, '')138 },139 140 /**141 * Return the contents of a function body.142 *143 * @param {function} body
70 unmodified lines
modified:spec/spec.core.js+10 added