FIX: don't extract links to anchors

This commit is contained in:
Régis Hanol
2016-04-15 20:02:18 +02:00
parent fd93fff39b
commit 1a621f3393
2 changed files with 5 additions and 1 deletions

View File

@@ -333,7 +333,7 @@ module PrettyText
# extract all links from the post
doc.css("a").each { |l|
unless l["href"].blank?
unless l["href"].blank? || "#".freeze == l["href"][0]
links << DetectedLink.new(l["href"])
end
}