I imagine two solutions: one that appears to handle more edge cases but is difficult to understand. The other which handles fewer edge cases but is easy to understand. I think it'd be much easier to fix the latter than to find out whether there is anything wrong with the former.
-
-
Show this thread
-
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.