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 { ...@@ -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 = { ...@@ -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: ...@@ -441,6 +443,8 @@ enabled_branches:
expect( expect(
framework.ciYaml.stringContents, framework.ciYaml.stringContents,
''' '''
# Friendly note
enabled_branches: enabled_branches:
- foo - foo
- master - 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