Fixed the regex of the step matching url to avoid breaking formatters
The inner group needs to be non-capturing. Fixes #99
This commit is contained in:
@@ -211,7 +211,7 @@ class MinkContext extends RawMinkContext implements TranslatedContextInterface
|
||||
/**
|
||||
* Checks, that current page PATH matches regular expression.
|
||||
*
|
||||
* @Then /^the (?i)url(?-i) should match (?P<pattern>"([^"]|\\")*")$/
|
||||
* @Then /^the (?i)url(?-i) should match (?P<pattern>"(?:[^"]|\\")*")$/
|
||||
*/
|
||||
public function assertUrlRegExp($pattern)
|
||||
{
|
||||
|
||||
@@ -302,7 +302,7 @@ trait MinkDictionary
|
||||
/**
|
||||
* Checks, that current page PATH matches regular expression.
|
||||
*
|
||||
* @Then /^the (?i)url(?-i) should match (?P<pattern>"([^"]|\\")*")$/
|
||||
* @Then /^the (?i)url(?-i) should match (?P<pattern>"(?:[^"]|\\")*")$/
|
||||
*/
|
||||
public function assertUrlRegExp($pattern)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user