cucumber-expressions
Advanced tools
Comparing version 5.0.10 to 5.0.11
@@ -80,3 +80,3 @@ 'use strict'; | ||
var REGEXP_CHARS = ['#', '$', '(', ')', '*', '+', '.', '?', '[', '\\', '^', '{', '|']; | ||
var REGEXP_CHARS = ['#', '$', '(', ')', '*', '+', '.', '/', '?', '[', '\\', '^', '{', '|']; | ||
function isRegexpChar(c) { | ||
@@ -83,0 +83,0 @@ return REGEXP_CHARS.indexOf(c) !== -1; |
{ | ||
"name": "cucumber-expressions", | ||
"version": "5.0.10", | ||
"version": "5.0.11", | ||
"description": "Cucumber Expressions - a simpler alternative to Regular Expressions", | ||
@@ -5,0 +5,0 @@ "main": "dist/src/index.js", |
@@ -69,2 +69,3 @@ const Regex = require('becke-ch--regex--s0-0-v1--base--pl--lib') | ||
'.', | ||
'/', | ||
'?', | ||
@@ -71,0 +72,0 @@ '[', |
@@ -67,2 +67,8 @@ /* eslint-env mocha */ | ||
it('works with escaped slash', () => { | ||
const tr = new TreeRegexp(/^I go to '\/(.+)'$/) | ||
const group = tr.match("I go to '/hello'") | ||
assert.equal(group.children.value, 1) | ||
}) | ||
it('captures non capturing groups with capturing groups inside', () => { | ||
@@ -69,0 +75,0 @@ const tr = new TreeRegexp('the stdout(?: from "(.*?)")?') |
Sorry, the diff of this file is not supported yet
2587
203981