flpvn / wittytwitter

Automatically exported from code.google.com/p/wittytwitter
0 stars 0 forks source link

Typing Non-URL into Update results in tinyURL conversion #71

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
* What steps will reproduce the problem?
1. Type a dotted string into update box (e.g. "System.Windows.Forms.Clipboard")
2. See the resulting output in the twitter time line

* What is the expected output? What do you see instead?

Instead of "System.Windows.Forms.Clipboard", I see a tinyURL converted URL.

* What version of the product are you using? On what operating system?

I'm using Witty 0.1.5 on Vista (64-bit) Ultimate Edition

* Please provide any additional information below.

Maybe do an HTTP request of the potential URL. If it exists, then do the
tinyURL conversion. If it doesn't exist, leave it typed in as is.

<shrug> Just a thought.

Original issue reported on code.google.com by HacaC...@gmail.com on 16 Jan 2008 at 11:45

GoogleCodeExporter commented 9 years ago
Here's a patch with a better regex. Tested with the following text:
"it's all about www.google.com/blech/?zhup#narf!!! it's the place for everybody 
to 
find system.windows.threading, or https://bazoo.uk/default.php?
mop=arg&flip=eep#wooboo!!! maybe check out ftp://flubber.uk/whup.pdf#7? or 
del.icio.us?"

Original comment by jongallo...@gmail.com on 1 Feb 2008 at 5:55

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks Jon. patch applied.

Original comment by alan...@gmail.com on 1 Feb 2008 at 6:26