Skip to content
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

Prevent overly eager regex match in fv command #99

Merged
merged 1 commit into from
Sep 15, 2015
Merged

Conversation

kastiglione
Copy link
Contributor

The regex used in fv is overly eager about how it matches the class name. This change replaces a .* with \S*. Without this, a formatted object embedded in a view's description could be matched as the address of the view. For example:

<ABCOneTwoThreeView: 0x25f9f180; frame = (12 606; 401 401); image = <UIImage: 0x215e9a80; …>>

Previously, the fv command would match the second address (0x215e9a80). This change will capture the first address in this case.

@mattjgalloway
Copy link
Contributor

LGTM. I'll merge it.

mattjgalloway added a commit that referenced this pull request Sep 15, 2015
Prevent overly eager regex match in `fv` command
@mattjgalloway mattjgalloway merged commit ed8ad40 into master Sep 15, 2015
@kastiglione
Copy link
Contributor Author

Thanks!

@kastiglione kastiglione deleted the fv-regex-fix branch September 15, 2015 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants