twitter/twitter-text-rb — pull request #47 by zaki (2012-03-09 03:38:31+00:00)
Title: Fix for extracting domains without protocol starting with invalid character '$'

Hi,

Conformance tests were failing on ruby 1.9.2 and 1.9.3 with twitter-text-rb - specifically the case "DO NOT extract URL if preceded by $" when URIs don't include the protocol. I'm attaching a simple fix for this issue by filtering out $ from valid domain characters.

If there is no special reason I am not aware of, it might be worth extending this list with other invalid characters like ^, as test cases like

```
- description: "DO NOT extract URL if preceded by ^"
text: "http://^twitter.com ^twitter.com"
expected: []
```

are currently also failing for both with and without protocol (this one on both 1.8.7 and 1.9.2/1.9.3).

Thanks,
Zaki