dwminer / WarThunderNewsBot

A bot that crawls reddit.com/r/warthunder for news submissions and posts comment mirrors.
1 stars 1 forks source link

Escape parentheses in links #3

Closed dwminer closed 10 years ago

dwminer commented 10 years ago

Parentheses in links break formatting with Reddit's markdown scheme. Add a regex to find and escape these characters in links with backslashes.

Eg: http://warthunder.com/upload/image/800px-Fw_190_A-8(1).jpg should be formatted as [Image](http://warthunder.com/upload/image/800px-Fw_190_A-8\(1\).jpg) to prevent the link from breaking.

dwminer commented 10 years ago

cb28bd683ced2a5440f24da6c567d9890dde203b