node_modules/mocha/mocha.js 1 location
|
@@ 1645-1645 (lines=1) @@
|
1642 |
|
* @param {string} str |
1643 |
|
* @return {number} |
1644 |
|
*/ |
1645 |
|
function parse (str) { |
1646 |
|
var match = (/^((?:\d+)?\.?\d+) *(ms|seconds?|s|minutes?|m|hours?|h|days?|d|years?|y)?$/i).exec(str); |
1647 |
|
if (!match) { |
1648 |
|
return; |
node_modules/mocha/lib/ms.js 1 location
|
@@ 41-41 (lines=1) @@
|
38 |
|
* @param {string} str |
39 |
|
* @return {number} |
40 |
|
*/ |
41 |
|
function parse (str) { |
42 |
|
var match = (/^((?:\d+)?\.?\d+) *(ms|seconds?|s|minutes?|m|hours?|h|days?|d|years?|y)?$/i).exec(str); |
43 |
|
if (!match) { |
44 |
|
return; |