Skip to content

Commit 5be0463

Browse files
committed
[github-nfbot] More improvements on badly formatted check lists
1 parent 07d8909 commit 5be0463

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

github-nfbot/GitHub-nfbot/GitHub_nfbot.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1434,7 +1434,7 @@ private static async Task FixCheckListAsync(dynamic payload, ILogger log)
14341434

14351435
// fix any typos in check lists
14361436
// Define a regex pattern to match any character inside the brackets, including optional spaces
1437-
string badCheckBoxesPattern = @"\[\s*[^\s\]]\s*\]";
1437+
string badCheckBoxesPattern = @"-?\s*\[\s*[^\s\]]\s*\]";
14381438

14391439
// Replace all matches with "[x]"
14401440
string prBodyFixed = Regex.Replace(prBody, badCheckBoxesPattern, "[x]");

0 commit comments

Comments
 (0)