From 42e8623f39bbd619138a8c6042e043e67549527a Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Wed, 9 Jul 2025 07:38:29 +0200 Subject: [PATCH] fix autolabler regex --- .github/workflows/autolabeler.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/autolabeler.yml b/.github/workflows/autolabeler.yml index a14cc7768..27e004734 100644 --- a/.github/workflows/autolabeler.yml +++ b/.github/workflows/autolabeler.yml @@ -80,7 +80,7 @@ jobs: for (const [checkbox, label] of Object.entries(templateLabelMappings)) { const escapedCheckbox = checkbox.replace(/([.*+?^=!:${}()|[\]\/\\])/g, "\\$1"); - const regex = new RegExp(`- \[(x|X)\]\s*.*${escapedCheckbox}`, "i"); + const regex = new RegExp(`- \\[(x|X)\\]\\s*${escapedCheckbox}`, "i"); if (regex.test(prBody)) { labelsToAdd.add(label); }