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