Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(498)

Unified Diff: utils/pub/git_source.dart

Issue 11312203: "Reverting 14829-14832" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « utils/apidoc/mdn/extract.dart ('k') | utils/pub/io.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/pub/git_source.dart
diff --git a/utils/pub/git_source.dart b/utils/pub/git_source.dart
index 2cba5ca1a36b389cd636748355d0add579641ddf..e00e4e06698c32fe0df42c87b992ec1f130ed6a4 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.
- var URL_LIKE = new RegExp(r'^[a-z]+\:');
+ const URL_LIKE = const RegExp(r'^[a-z]+\:');
if (!URL_LIKE.hasMatch(from)) {
from = getFullPath(from);
}
« no previous file with comments | « utils/apidoc/mdn/extract.dart ('k') | utils/pub/io.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698