From aedf6dc197570d49e6b9a5557cab29ea06c12345 Mon Sep 17 00:00:00 2001 From: Taketo Takashima Date: Wed, 14 Jan 2026 22:38:55 +0900 Subject: [PATCH] Ignore QuestionExclamationInParagraphRule warnings for punctuation at the end of link text --- editing_tools/rubima-lint.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editing_tools/rubima-lint.rb b/editing_tools/rubima-lint.rb index 876f2d9e..7ae9bb84 100755 --- a/editing_tools/rubima-lint.rb +++ b/editing_tools/rubima-lint.rb @@ -221,7 +221,7 @@ def warning_description class QuestionExclamationInParagraphRule < LineRule def initialize - pattern = /#{Patterns::QUESTION_EXCLAMATION}(?!$)(?![ #{Patterns::QUESTION_EXCLAMATION}#{Patterns::CLOSE_BRACKETS}])/o + pattern = /#{Patterns::QUESTION_EXCLAMATION}(?!$)(?!\])(?![ #{Patterns::QUESTION_EXCLAMATION}#{Patterns::CLOSE_BRACKETS}])/o super('question_exclamation_in_paragraph', pattern, correctable: true, color_code: 31) end