From c63f8cbadfe0ff231f4229e64a2ab5a9671b438b Mon Sep 17 00:00:00 2001 From: raman325 <7243222+raman325@users.noreply.github.com> Date: Thu, 15 Jan 2026 13:05:02 -0500 Subject: [PATCH] Fix issue-labeler patterns to use portable cross-line matching Replace [\s\S]*? with (.|[\r\n])*? for matching across lines. The [\s\S] character class may not work in all regex engines, while (.|[\r\n]) is more portable. Co-Authored-By: Claude Opus 4.5 --- .github/issue-labeler.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/issue-labeler.yml b/.github/issue-labeler.yml index 44e1c951c..0e2a8bd03 100644 --- a/.github/issue-labeler.yml +++ b/.github/issue-labeler.yml @@ -1,21 +1,21 @@ # Configuration for github/issue-labeler - body-based labels # See: https://github.com/github/issue-labeler # Uses regex patterns to match PR/issue body content -# All checkbox patterns require ## Type of change header first to avoid matching examples +# Checkbox patterns use (.|[\r\n])*? for cross-line matching ([\s\S] may not work in all engines) --- bug: - - '## Type of change[\s\S]*?- \[[xX]\]\s*[Bb]ugfix' + - '## Type of change(.|[\r\n])*?- \[[xX]\]\s*[Bb]ugfix' enhancement: - - '## Type of change[\s\S]*?- \[[xX]\]\s*[Nn]ew [Ff]eature' + - '## Type of change(.|[\r\n])*?- \[[xX]\]\s*[Nn]ew [Ff]eature' breaking-change: # Checkbox in Type of change section - - '## Type of change[\s\S]*?- \[[xX]\]\s*[Bb]reaking [Cc]hange' + - '## Type of change(.|[\r\n])*?- \[[xX]\]\s*[Bb]reaking [Cc]hange' # Breaking change section with content after HTML comment - - '^[\s\S]*?# Breaking change[\s\S]*?-->\s*\n+[A-Z][a-z]+[\s\S]*?## Proposed change' + - '# Breaking change(.|[\r\n])*?-->\s*\n+[A-Z][a-z]+(.|[\r\n])*?## Proposed change' # Breaking change section with HTML comment removed - - '^[\s\S]*?# Breaking change\s*\n+[A-Z][a-z]+[\s\S]*?## Proposed change' + - '# Breaking change\s*\n+[A-Z][a-z]+(.|[\r\n])*?## Proposed change' code-quality: - - '## Type of change[\s\S]*?- \[[xX]\]\s*[Cc]ode [Qq]uality' + - '## Type of change(.|[\r\n])*?- \[[xX]\]\s*[Cc]ode [Qq]uality'