Chromium Code Reviews| Index: utils/pub/git_source.dart |
| diff --git a/utils/pub/git_source.dart b/utils/pub/git_source.dart |
| index e00e4e06698c32fe0df42c87b992ec1f130ed6a4..c1a374ed6916f3812c70f2b90b5a57172a541d42 100644 |
| --- a/utils/pub/git_source.dart |
| +++ b/utils/pub/git_source.dart |
| @@ -152,7 +152,7 @@ class GitSource extends Source { |
| // have the right working directory when pub spawns git, so the relative |
| // path fails. To work around it, if [from] looks like a relative path then |
| // manually make it absolute here. Should figure out what's really going on. |
| - const URL_LIKE = const RegExp(r'^[a-z]+\:'); |
| + final URL_LIKE = new RegExp(r'^[a-z]+\:'); |
|
Bob Nystrom
2012/11/12 18:55:05
"final" -> "var". We don't bother to use "final" f
Anders Johnsen
2012/11/13 06:42:32
Done.
|
| if (!URL_LIKE.hasMatch(from)) { |
| from = getFullPath(from); |
| } |