Skip to content

Commit 2cdda56

Browse files
authored
Fix: Bug in dart_site/check_link_references tool during matching (#6082)
1 parent 7b7c746 commit 2cdda56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tool/dart_site/lib/src/commands/check_link_references.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ final _pullRequestTitlePattern = RegExp(
136136
/// by @craiglabenz in https://github.com/flutter/flutter/pull/100316</li>
137137
/// ```
138138
final _pullRequestTitleInListItemPattern = RegExp(
139-
r'<li>.*? in.*?https://github.com/.*?/pull/.*?</li>',
139+
r'<li>(?:(?!<li>).)*?in\s+(?:<a[^>]*?href="https://github\.com/[^/]+/[^/]+/pull/\d+">[\d]+</a>|https://github\.com/[^/]+/[^/]+/pull/\d+)(?:(?!<li>).)*?</li>',
140140
dotAll: true,
141141
);
142142

0 commit comments

Comments
 (0)