-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 3.1.5, 3.2.2, 3.3
-
Component/s: Automated functional tests (behat)
-
Labels:
-
Testing Instructions:
-
Affected Branches:MOODLE_31_STABLE, MOODLE_32_STABLE, MOODLE_33_STABLE
-
Fixed Branches:MOODLE_32_STABLE, MOODLE_33_STABLE
-
Pull from Repository:
-
Pull Master Branch:
MDL-58761_bad_regex_in_custom_step
The regex to extract the current course in the custom step i_open_my_profile_in_edit_mode is wrong. Sorry I didn't spot this when I did the development work on it.
It is currently only going to work with single digit course ids:
'/(?<=^course-|\scourse-)\d/'
It should be changed to this to allow for multi digit course ids:
'/(?<=^course-|\scourse-)(?:\d*)/'