Index: utils/pub/utils.dart |
diff --git a/utils/pub/utils.dart b/utils/pub/utils.dart |
index 98cc79b92928642d439c2c3c1405d4ba2c7f7c13..21275f8b51bf084b8a42fd7429c1b9067e6180dd 100644 |
--- a/utils/pub/utils.dart |
+++ b/utils/pub/utils.dart |
@@ -97,8 +97,8 @@ String replace(String source, Pattern matcher, String fn(Match)) { |
var buffer = new StringBuffer(); |
var start = 0; |
for (var match in matcher.allMatches(source)) { |
- buffer.add(source.substring(start, match.start())); |
- start = match.end(); |
+ buffer.add(source.substring(start, match.start)); |
+ start = match.end; |
buffer.add(fn(match)); |
} |
buffer.add(source.substring(start)); |
@@ -110,7 +110,7 @@ String replace(String source, Pattern matcher, String fn(Match)) { |
*/ |
bool endsWithPattern(String str, Pattern matcher) { |
for (var match in matcher.allMatches(str)) { |
- if (match.end() == str.length) return true; |
+ if (match.end == str.length) return true; |
} |
return false; |
} |