Skip to content
Myr

Merge pull request #1566 from daguej/v8-context-fix

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

Possible fix for #1557

authored by TJ Holowaychuk · committed by TJ Holowaychuk · parents 99bc628, 57e48c4 · Browse files · 2 files+2 added−2 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+2 added−2 removed

  • tests:+1 added−1 removed
  • other:+1 added−1 removed

2 files+2 added−2 removed

modified:lib/utils.js+1 added-1 removed
283 unmodified lines
284 * @api private285 */286287exports.pathRegexp = function(path, keys, sensitive, strict) {288 if (path instanceof RegExp) return path;288 if (Object.prototype.toString.call(path) == '[object RegExp]') return path; // see #1557289 if (Array.isArray(path)) path = '(' + path.join('|') + ')';290 path = path291 .concat(strict ? '' : '/?')292 .replace(/\/\(/g, '(?:/')
15 unmodified lines
modified:test/app.param.js+1 added-1 removed