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

Reworked TransformAndExtractUrls and fixed tests for it. #592

Merged
merged 6 commits into from Sep 27, 2012

Conversation

WilliamBZA
Copy link
Contributor

It now decodes the message first, then re-encodes the relevant parts if they match. The RegEx for URL parsing was also reworked according to http://daringfireball.net/2010/07/improved_regex_for_matching_urls

Two tests for this method were added and one broken test fixed. The broken test was passing non-encoded data to the method when in reality the method always gets passed encoded messages. This allows the method to decode the message first and then re-encode the relevant parts.

Should resolve issue #537

samandmoore added a commit that referenced this pull request Sep 27, 2012
Reworked TransformAndExtractUrls and fixed tests for it.
@samandmoore samandmoore merged commit db443b1 into JabbR:master Sep 27, 2012
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.

None yet

3 participants