From a167ea826931d934ee830720545027622a0a2b50 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 26 Jan 2026 01:03:21 +0000 Subject: [PATCH] Fix triple-quote regex pattern for multiline strings Co-authored-by: clydebarrow <2366188+clydebarrow@users.noreply.github.com> --- .github/workflows/auto-label-pr.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/auto-label-pr.yml b/.github/workflows/auto-label-pr.yml index ba30a575ab..87c031bf2b 100644 --- a/.github/workflows/auto-label-pr.yml +++ b/.github/workflows/auto-label-pr.yml @@ -416,9 +416,9 @@ jobs: // Look for DEPRECATED_COMPONENT = "message" or DEPRECATED_COMPONENT = 'message' // Support single quotes, double quotes, and triple quotes (for multiline) - const doubleQuoteMatch = content.match(/DEPRECATED_COMPONENT\s*=\s*"""((?:[^\\]|\\.)*)"""/s) || + const doubleQuoteMatch = content.match(/DEPRECATED_COMPONENT\s*=\s*"""([\s\S]*?)"""/s) || content.match(/DEPRECATED_COMPONENT\s*=\s*"((?:[^"\\]|\\.)*)"/); - const singleQuoteMatch = content.match(/DEPRECATED_COMPONENT\s*=\s*'''((?:[^\\]|\\.)*)'''/s) || + const singleQuoteMatch = content.match(/DEPRECATED_COMPONENT\s*=\s*'''([\s\S]*?)'''/s) || content.match(/DEPRECATED_COMPONENT\s*=\s*'((?:[^'\\]|\\.)*)'/); const deprecatedMatch = doubleQuoteMatch || singleQuoteMatch;