Unverified Commit 7c915fe2 authored by Christopher Fujino's avatar Christopher Fujino Committed by GitHub

fix regex (#88976)

parent 6782c307
......@@ -823,7 +823,7 @@ class CiYaml {
}).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.
///
......
......@@ -405,6 +405,8 @@ vars = {
onRun: () {
ciYaml.createSync(recursive: true);
ciYaml.writeAsStringSync('''
# Friendly note
enabled_branches:
- master
- dev
......@@ -441,6 +443,8 @@ enabled_branches:
expect(
framework.ciYaml.stringContents,
'''
# Friendly note
enabled_branches:
- foo
- master
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment