nooodle/noodleapp — pull request #55 by mattflaschen (2012-10-29 20:02:44+00:00)
Title: Media url bug

This fixes an issue with images getting accessed as invalid relative URLs (e.g. http://app.noodletalk.org/i.imgur.com/CHx10.png).

I removed the url field from the real-url response, since it was getting overwritten anyway.

I also used test instead of match, since it's faster when you don't need the details of the match; I combined the HTTP regexes too.

There are still a couple edge case bugs, like http://app.noodletalk.org/user/theesquire / https://alpha.app.net/theesquire/post/1274243 that were already present in prod (the URL is connected to an adjacent paren since there's no space).