fix regex (#88976)
This commit is contained in:
parent
6782c30710
commit
7c915fe29c
@ -823,7 +823,7 @@ class CiYaml {
|
|||||||
}).toList();
|
}).toList();
|
||||||
}
|
}
|
||||||
|
|
||||||
static final RegExp _enabledBranchPattern = RegExp(r'^enabled_branches:');
|
static final RegExp _enabledBranchPattern = RegExp(r'enabled_branches:');
|
||||||
|
|
||||||
/// Update this .ci.yaml file with the given branch name.
|
/// Update this .ci.yaml file with the given branch name.
|
||||||
///
|
///
|
||||||
|
@ -405,6 +405,8 @@ vars = {
|
|||||||
onRun: () {
|
onRun: () {
|
||||||
ciYaml.createSync(recursive: true);
|
ciYaml.createSync(recursive: true);
|
||||||
ciYaml.writeAsStringSync('''
|
ciYaml.writeAsStringSync('''
|
||||||
|
# Friendly note
|
||||||
|
|
||||||
enabled_branches:
|
enabled_branches:
|
||||||
- master
|
- master
|
||||||
- dev
|
- dev
|
||||||
@ -441,6 +443,8 @@ enabled_branches:
|
|||||||
expect(
|
expect(
|
||||||
framework.ciYaml.stringContents,
|
framework.ciYaml.stringContents,
|
||||||
'''
|
'''
|
||||||
|
# Friendly note
|
||||||
|
|
||||||
enabled_branches:
|
enabled_branches:
|
||||||
- foo
|
- foo
|
||||||
- master
|
- master
|
||||||
|
Loading…
x
Reference in New Issue
Block a user