Skip to content

Fix the broken Gherkin spec on main, and refactor STEP_REGEX#2226

Merged
jneen merged 3 commits intomainfrom
maint.fix-gherkin-spec
Feb 26, 2026
Merged

Fix the broken Gherkin spec on main, and refactor STEP_REGEX#2226
jneen merged 3 commits intomainfrom
maint.fix-gherkin-spec

Conversation

@jneen
Copy link
Copy Markdown
Member

@jneen jneen commented Feb 26, 2026

Previously, the matched Keyword token from the step keywords contained spaces, which is a bug we seem to have specced in.

Here I've fixed the specs, as well as pre-computed the STEP_REGEX to live in a constant in gherkin/keywords.rb, instead of using Regex.escape and join at runtime.

@jneen jneen added this pull request to the merge queue Feb 26, 2026
Merged via the queue into main with commit 26ee361 Feb 26, 2026
@jneen jneen deleted the maint.fix-gherkin-spec branch February 26, 2026 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant