File tree Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change 1
- // Copyright (c) 2023 , the Dart project authors. Please see the AUTHORS file
1
+ // Copyright (c) 2024 , the Dart project authors. Please see the AUTHORS file
2
2
// for details. All rights reserved. Use of this source code is governed by a
3
3
// BSD-style license that can be found in the LICENSE file.
4
4
Original file line number Diff line number Diff line change 1
- // Copyright (c) 2023 , the Dart project authors. Please see the AUTHORS file
1
+ // Copyright (c) 2024 , the Dart project authors. Please see the AUTHORS file
2
2
// for details. All rights reserved. Use of this source code is governed by a
3
3
// BSD-style license that can be found in the LICENSE file.
4
4
5
- // ignore_for_file: prefer_expression_function_bodies
6
-
7
5
import 'dart:convert' ;
8
6
import 'dart:io' ;
9
7
@@ -169,9 +167,7 @@ String convertMdnToMarkdown(String content) {
169
167
});
170
168
171
169
// Remove additional mustache-like directives ({{InheritanceDiagram}}, ...).
172
- text = text.replaceAllMapped (_mustacheRegex, (match) {
173
- return '' ;
174
- });
170
+ text = text.replaceAllMapped (_mustacheRegex, (match) => '' );
175
171
176
172
// Replace multiple blank lines by 2 blank lines.
177
173
text = text.replaceAll (RegExp ('\n\n\n +' ), '\n\n ' );
You can’t perform that action at this time.
0 commit comments