Skip to content
Myr

refactor

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

authored by TJ Holowaychuk · committed by TJ Holowaychuk · parent 2db135d · Browse files · 1 file+7 added−1 removed
This commit

State

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

Diff stats

1 file+7 added−1 removed

  • other:+7 added−1 removed

1 file+7 added−1 removed

modified:lib/utils.js+7 added-1 removed
5 unmodified lines
6var mime = require('connect').mime7 , crc32 = require('buffer-crc32');89/**10 * toString ref.11 */1213var toString = {}.toString;1415/**16 * Return ETag for `body`.17 *18 * @param {String|Buffer} body19 * @return {String}
270 unmodified lines
290 * @api private291 */292293exports.pathRegexp = function(path, keys, sensitive, strict) {288 if (Object.prototype.toString.call(path) == '[object RegExp]') return path; // see #1557294 if (toString.call(path) == '[object RegExp]') return path;295 if (Array.isArray(path)) path = '(' + path.join('|') + ')';296 path = path297 .concat(strict ? '' : '/?')298 .replace(/\/\(/g, '(?:/')
15 unmodified lines