| Index: pkg/dart_messages/bin/publish.dart
|
| diff --git a/pkg/dart_messages/bin/publish.dart b/pkg/dart_messages/bin/publish.dart
|
| index acba54f4371238ab979f35e7d29eb5eeb1fe2922..d6e3f87aafd9f214202a6be3d8b66c0b89a9c701 100644
|
| --- a/pkg/dart_messages/bin/publish.dart
|
| +++ b/pkg/dart_messages/bin/publish.dart
|
| @@ -155,9 +155,12 @@ String convertToAnalyzerTemplate(String template, holeOrder) {
|
| }
|
| }
|
| int seenHoles = 0;
|
| - return template.replaceAllMapped(new RegExp(r"#\w+"), (Match match) {
|
| + return template.replaceAllMapped(new RegExp(r"#\w+|#{\w+}"), (Match match) {
|
| if (holeMap != null) {
|
| - String holeName = match[0].substring(1);
|
| + String matchedString = match[0];
|
| + String holeName = matchedString.startsWith("#{")
|
| + ? matchedString.substring(2, matchedString.length - 1)
|
| + : matchedString.substring(1);
|
| int index = holeMap[holeName];
|
| if (index == null) {
|
| throw "Couldn't find hole-position for $holeName $holeMap";
|
|
|