Skip to content

Commit

Permalink
Update MarkdownGroupCheckboxValidator.php (#607)
Browse files Browse the repository at this point in the history
  • Loading branch information
guibranco authored Oct 8, 2024
1 parent d4ec045 commit 2b3f4a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Src/Library/MarkdownGroupCheckboxValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class MarkdownGroupCheckboxValidator
{
public function validateCheckboxes(string $prBody): array
{
$groupPattern = '/(###?[^\n]+)(?:\n- \[(x| )\] [^\n]+)+/i';
$groupPattern = '/##\s(.+)\n(?:<!--.*?-->\n)?((?:- \[(.)\] .+\n)+)/mi';
$checkboxPattern = '/- \[(x| )\] (.+)/i';

$report = [
Expand Down Expand Up @@ -60,7 +60,7 @@ public function generateReport(array $validationResult): string
return implode("\n", $validationResult['errors']);
}

$report = "Checkbox Validation Report:\n";
$report = "Checkbox validation report:\n";

foreach ($validationResult['groups'] as $group) {
$report .= "\n{$group['group']}\n";
Expand Down

0 comments on commit 2b3f4a5

Please sign in to comment.