Skip to content

Commit cd53c84

Browse files
johnniwintherCommit Queue
authored and
Commit Queue
committed
Fix frontend presubmit check on Windows
Change-Id: Ide265d78942718140d3792064694b1f83a1236a9 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/350821 Reviewed-by: Jens Johansen <[email protected]> Commit-Queue: Johnni Winther <[email protected]>
1 parent f7e3c62 commit cd53c84

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

pkg/front_end/presubmit_helper.dart

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -340,8 +340,15 @@ int? _getPathSegmentIndexIfSubEntry(Uri outer, Uri inner) {
340340
int end = outerPathSegments.length;
341341
if (outerPathSegments.last == "") end--;
342342
for (int i = 0; i < end; i++) {
343-
if (outerPathSegments[i] != innerPathSegments[i]) {
344-
return null;
343+
if (Platform.isWindows) {
344+
if (outerPathSegments[i].toLowerCase() !=
345+
innerPathSegments[i].toLowerCase()) {
346+
return null;
347+
}
348+
} else {
349+
if (outerPathSegments[i] != innerPathSegments[i]) {
350+
return null;
351+
}
345352
}
346353
}
347354
return end;

0 commit comments

Comments
 (0)