| Index: tools/gardening/lib/src/util.dart
|
| diff --git a/tools/gardening/lib/src/util.dart b/tools/gardening/lib/src/util.dart
|
| index ba80e6e6372bec8609051e3cf99dc7977762461b..2e48792829e170eda60e0be46ad68182c7c6362a 100644
|
| --- a/tools/gardening/lib/src/util.dart
|
| +++ b/tools/gardening/lib/src/util.dart
|
| @@ -105,3 +105,12 @@ void processArgResults(ArgResults argResults) {
|
| cache.base = null;
|
| }
|
| }
|
| +
|
| +/// Strips un-wanted characters from string [category] from CBE json.
|
| +String sanitizeCategory(String category) {
|
| + // Category name starts with either two or three numbers and
|
| + // end with |all. Instead of doing any fancy regular-expr,
|
| + // we just test if third char is a number.
|
| + return category.substring(
|
| + category.codeUnitAt(2) <= 64 ? 3 : 2, category.length - 4);
|
| +}
|
|
|