forked from cucumber/cucumber-js
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/cucumber/cucumber-js into…
… v1.2.2-chimp
- Loading branch information
Showing
5 changed files
with
28 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
"gherkin", | ||
"tests" | ||
], | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"homepage": "http://github.com/cucumber/cucumber-js", | ||
"author": "Julien Biezemans <[email protected]> (http://jbpros.net)", | ||
"contributors": [ | ||
|
@@ -86,7 +86,8 @@ | |
"John McLaughlin <[email protected]>", | ||
"Josh Goldberg <[email protected]>", | ||
"Artur Pomadowski <[email protected]>", | ||
"Benjamín Eidelman <[email protected]>" | ||
"Benjamín Eidelman <[email protected]>", | ||
"Jan Molak <[email protected]>" | ||
], | ||
"repository": { | ||
"type": "git", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2599,7 +2599,7 @@ function isFrameInCucumber(frame) { | |
|
||
function filter() { | ||
currentFilter = chain.filter.attach(function (error, frames) { | ||
if (isFrameInCucumber(frames[0])) { | ||
if (frames.length > 0 && isFrameInCucumber(frames[0])) { | ||
return frames; | ||
} | ||
return frames.filter(_.negate(isFrameInCucumber)); | ||
|
@@ -3818,6 +3818,9 @@ var objectKeys = Object.keys || function (obj) { | |
},{"util/":178}],68:[function(require,module,exports){ | ||
module.exports = balanced; | ||
function balanced(a, b, str) { | ||
if (a instanceof RegExp) a = maybeMatch(a, str); | ||
if (b instanceof RegExp) b = maybeMatch(b, str); | ||
|
||
var r = range(a, b, str); | ||
|
||
return r && { | ||
|
@@ -3829,6 +3832,11 @@ function balanced(a, b, str) { | |
}; | ||
} | ||
|
||
function maybeMatch(reg, str) { | ||
var m = str.match(reg); | ||
return m ? m[0] : null; | ||
} | ||
|
||
balanced.range = range; | ||
function range(a, b, str) { | ||
var begs, beg, left, right, result; | ||
|
@@ -3840,7 +3848,7 @@ function range(a, b, str) { | |
begs = []; | ||
left = str.length; | ||
|
||
while (i < str.length && i >= 0 && ! result) { | ||
while (i >= 0 && !result) { | ||
if (i == ai) { | ||
begs.push(i); | ||
ai = str.indexOf(a, i + 1); | ||
|
@@ -37771,7 +37779,7 @@ module.exports={ | |
"gherkin", | ||
"tests" | ||
], | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"homepage": "http://github.com/cucumber/cucumber-js", | ||
"author": "Julien Biezemans <[email protected]> (http://jbpros.net)", | ||
"contributors": [ | ||
|
@@ -37849,7 +37857,8 @@ module.exports={ | |
"John McLaughlin <[email protected]>", | ||
"Josh Goldberg <[email protected]>", | ||
"Artur Pomadowski <[email protected]>", | ||
"Benjamín Eidelman <[email protected]>" | ||
"Benjamín Eidelman <[email protected]>", | ||
"Jan Molak <[email protected]>" | ||
], | ||
"repository": { | ||
"type": "git", | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.