diff --git a/.github/workflows/issue-checkbox-checker.yml b/.github/workflows/issue-checkbox-checker.yml index d0125b536b..df6a9ab577 100644 --- a/.github/workflows/issue-checkbox-checker.yml +++ b/.github/workflows/issue-checkbox-checker.yml @@ -19,7 +19,7 @@ jobs: const texts = [ '我.*未仔细阅读', 'I have checked all the options without carefully reading the content and believe this will not affect issue resolution.']; - return texts.some(text => new RegExp(`- \\[x\\]\\s*${text.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')}`).test(context.payload.issue.body)); + return texts.some(text => new RegExp(`- \\[x\\]\\s*${text}`).test(context.payload.issue.body)); - name: Close and lock issue if: steps.unread-checkbox-check.outputs.result == 'true'