Skip to content

Commit 7c915fe

Browse files
fix regex (flutter#88976)
1 parent 6782c30 commit 7c915fe

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

dev/conductor/lib/repository.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -823,7 +823,7 @@ class CiYaml {
823823
}).toList();
824824
}
825825

826-
static final RegExp _enabledBranchPattern = RegExp(r'^enabled_branches:');
826+
static final RegExp _enabledBranchPattern = RegExp(r'enabled_branches:');
827827

828828
/// Update this .ci.yaml file with the given branch name.
829829
///

dev/conductor/test/repository_test.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,8 @@ vars = {
405405
onRun: () {
406406
ciYaml.createSync(recursive: true);
407407
ciYaml.writeAsStringSync('''
408+
# Friendly note
409+
408410
enabled_branches:
409411
- master
410412
- dev
@@ -441,6 +443,8 @@ enabled_branches:
441443
expect(
442444
framework.ciYaml.stringContents,
443445
'''
446+
# Friendly note
447+
444448
enabled_branches:
445449
- foo
446450
- master

0 commit comments

Comments
 (0)