unnecessary multiline strings (#50806)

This commit is contained in:
Alexandre Ardhuin
2020-02-26 03:12:17 +01:00
committed by GitHub
parent 419a2853a8
commit a4054938ce
4 changed files with 12 additions and 12 deletions

View File

@@ -21,7 +21,7 @@ void main(List<String> args) {
// Since I didn't want to add the XML package as a dependency just for this,
// I just used a regular expression to make this simple change.
final RegExp findRe = RegExp(r'''(\s*<key>DocSetPlatformFamily</key>\s*<string>)[^<]+(</string>)''', multiLine: true);
final RegExp findRe = RegExp(r'(\s*<key>DocSetPlatformFamily</key>\s*<string>)[^<]+(</string>)', multiLine: true);
contents = contents.replaceAllMapped(findRe, (Match match) {
return '${match.group(1)}dartlang${match.group(2)}';
});