p-e-w / krill

:newspaper: The hacker's way of keeping up with the world (NO LONGER MAINTAINED)
803 stars 34 forks source link

Put whitespace before http to prevent colorizing issues #10

Open nloadholtes opened 7 years ago

nloadholtes commented 7 years ago

Sometimes hashtags will be smashed into links. When the _print_stream_item regex tried to put in the colorings, the escape codes were being inserted after the : in the link. This commit will put a space before http (if there's a character in front of it).

Example before: image

And after: image