Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit f00db25

Browse files
committed
[licenses] Updates ICU license regexp and URL
New file in the ICU library use the https scheme for the URL instead of prior http to declare the license, leading to the 'unmatched potential copyright' message. This change removes the issue.
1 parent 46bea73 commit f00db25

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

tools/licenses/lib/licenses.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,7 @@ abstract class License implements Comparable<License> {
307307
body = system.File('data/mit').readAsStringSync();
308308
type = LicenseType.mit;
309309
break;
310+
case 'https://www.unicode.org/copyright.html':
310311
case 'http://www.unicode.org/copyright.html':
311312
body = system.File('data/unicode').readAsStringSync();
312313
type = LicenseType.icu;

tools/licenses/lib/patterns.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1156,7 +1156,7 @@ final List<MultipleVersionedLicenseReferencePattern> csReferencesByUrl = <Multip
11561156
pattern: RegExp(
11571157
kIndent +
11581158
r'(?:©|Copyright (©|\(C\))) 20.. and later: Unicode, Inc. and others.[ *]*\n'
1159-
r'^\1\2License & terms of use: (http://www.unicode.org/copyright.html)',
1159+
r'^\1\2License & terms of use: (https?://www.unicode.org/copyright.html)',
11601160
multiLine: true,
11611161
caseSensitive: false,
11621162
)

0 commit comments

Comments
 (0)