Skip to content

Commit cb5f8d9

Browse files
authored
Replace - with 'I' in generated case IDs. (#7989)
1 parent 1eebaaf commit cb5f8d9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/lib/admin/models.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,13 +126,13 @@ class ModerationCase extends db.ExpandoModel<String> {
126126
opened = clock.now().toUtc();
127127
}
128128

129-
/// Generates a short case id like `<yyyy><mm><dd>-0123456789`.
129+
/// Generates a short case id like `<yyyy><mm><dd>I0123456789`.
130130
static String generateCaseId({
131131
DateTime? now,
132132
}) {
133133
now ??= clock.now();
134134
return '${now.toIso8601String().split('T').first.replaceAll('-', '')}'
135-
'-'
135+
'I'
136136
'${createUuid().split('-').join('').substring(0, 10)}';
137137
}
138138

pkg/pub_integration/test/report_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import 'package:pub_integration/src/pub_puppeteer_helpers.dart';
1111
import 'package:pub_integration/src/test_browser.dart';
1212
import 'package:test/test.dart';
1313

14-
final _caseIdExpr = RegExp(r'[0-9]{8}-[0-9a-f]{10}');
14+
final _caseIdExpr = RegExp(r'[0-9]{8}I[0-9a-f]{10}');
1515

1616
void main() {
1717
group('report', () {

0 commit comments

Comments
 (0)