Skip to content
Myr

Added dirname()

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

authored by visionmedia · committed by visionmedia · parent 60a968b · Browse files · 2 files+6 added−10 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+6 added−10 removed

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

2 files+6 added−10 removed

modified:lib/express/core.js+4 added
129 unmodified lines
130jsonEncode = function(object) {131 return JSON.stringify(object)132}133134dirname = function(path) {135 return path.split('/').slice(0, -1).join('/')136}137138/**139 * Escape special characters in _html_.140 *141 * @param {string} html
122 unmodified lines
modified:spec/spec.core.helpers.js+2 added-10 removed