A platform for community discussion. Free, open, simple.
DEV: Update code comment wording (#22861)
Blake Erickson274c3c93966d
diff --git a/lib/excerpt_parser.rb b/lib/excerpt_parser.rbindex 5d9c9cabe31..0811cb3129a 100644--- a/lib/excerpt_parser.rb+++ b/lib/excerpt_parser.rb@@ -115,7 +115,7 @@ class ExcerptParser < Nokogiri::XML::SAX::Documentwhen "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/269436if attributes["class"]&.include?("excerpt") && !attributes["class"]&.match?("excerpt hidden")