| Index: utils/pub/utils.dart
|
| diff --git a/utils/pub/utils.dart b/utils/pub/utils.dart
|
| index 097f60ff68a31a67d38d5651b9c1a36cc01cc8dc..60f8ab09749a5303189b2d875dacc48554ed7633 100644
|
| --- a/utils/pub/utils.dart
|
| +++ b/utils/pub/utils.dart
|
| @@ -100,3 +100,13 @@ String replace(String source, Pattern matcher, String fn(Match)) {
|
| buffer.add(source.substring(start));
|
| return buffer.toString();
|
| }
|
| +
|
| +/**
|
| + * Returns whether or not [str] ends with [matcher].
|
| + */
|
| +bool endsWithPattern(String str, Pattern matcher) {
|
| + for (var match in matcher.allMatches(str)) {
|
| + if (match.end() == str.length) return true;
|
| + }
|
| + return false;
|
| +}
|
|
|