Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #17 from RubVer/master

Regular expressions in suggestions are not properly escaped
  • Loading branch information...
commit 61335cbb900268cd07d574b4435ddeb4a3a8222d 2 parents 5960160 + 1fa0999
@kivikakk kivikakk authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  bin/cucumis.js
View
2  bin/cucumis.js
@@ -432,7 +432,7 @@ function runStep(scenario, step, exampleSet, testState, cb) {
testState.skip = true;
// smart parametrization of numbers and strings
- var re = stepText;
+ var re = RegExp.escape(stepText).replace(/\//g, '\\/');
var args = [];
re = re.replace(/(\s|^)(\d+)(\s|$)/, function(str, m1, m2, m3) {
Please sign in to comment.
Something went wrong with that request. Please try again.