Skip to content

Readable regex errors #47

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jan 15, 2016
Merged

Readable regex errors #47

merged 3 commits into from
Jan 15, 2016

Conversation

kaspth
Copy link
Contributor

@kaspth kaspth commented Jan 15, 2016

Fixes #38.

See the last commit for reasoning.

cc @rafaelfranca

We're only touching state that the HTMLSelector already knows about in
the method, so just internalize it and nodoc it.
We'll soon have this make more sense by returning a more presentable version
of the selector used to match elements.
Becomes:

```
Expected at least 1 element matching "div:match('id', "/wups/")", found 0..
Expected 0 to be >= 1
```

Instead of saying "\"(?-mix:wups)\"".
@kaspth kaspth self-assigned this Jan 15, 2016
@rafaelfranca
Copy link
Member

:shipit:

kaspth added a commit that referenced this pull request Jan 15, 2016
@kaspth kaspth merged commit 946a801 into rails:master Jan 15, 2016
@kaspth kaspth deleted the readable-regex-errors branch January 15, 2016 21:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants