mirror of
https://github.com/discourse/discourse.git
synced 2024-11-21 16:38:15 -06:00
DEV: Update code comment wording (#22861)
Follow up to: a8c504aee4
See: https://github.com/discourse/discourse/pull/22829#discussion_r1277747036
This commit is contained in:
parent
891aabde19
commit
274c3c9396
@ -115,7 +115,7 @@ class ExcerptParser < Nokogiri::XML::SAX::Document
|
||||
when "div", "span"
|
||||
attributes = Hash[*attributes.flatten]
|
||||
|
||||
# Only match "excerpt" class if it does specifically equal "excerpt
|
||||
# Only match "excerpt" class if it does not specifically equal "excerpt
|
||||
# hidden" in order to prevent internal links with GitHub oneboxes from
|
||||
# being empty https://meta.discourse.org/t/269436
|
||||
if attributes["class"]&.include?("excerpt") && !attributes["class"]&.match?("excerpt hidden")
|
||||
|
Loading…
Reference in New Issue
Block a user