Skip to content

Commit

Permalink
Escape hash in Markdown links
Browse files Browse the repository at this point in the history
  • Loading branch information
ttscoff committed Feb 7, 2014
1 parent e4206cd commit 734c3c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Twitterify.popclipext/script.rb
Expand Up @@ -34,7 +34,7 @@
if match[0] == "@"
markdown ? "#{$1}[#{match}](https://twitter.com/#{match[1..-1]})" : "#{$1}<a href=\"https://twitter.com/#{match[1..-1]}\" title=\"#{match[1..-1]} on Twitter\">#{match}</a>"
elsif match[0] == "#"
markdown ? "#{$1}[#{match}](https://twitter.com/search?q=%23#{match[1..-1]}&src=hash)" : "#{$1}<a href=\"https://twitter.com/search?q=%23#{match[1..-1]}&src=hash\">#{match}</a>"
markdown ? "#{$1}[\\#{match}](https://twitter.com/search?q=%23#{match[1..-1]}&src=hash)" : "#{$1}<a href=\"https://twitter.com/search?q=%23#{match[1..-1]}&src=hash\">#{match}</a>"
else
"#{$1}#{match}"
end
Expand Down

0 comments on commit 734c3c6

Please sign in to comment.