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

Unified Diff: utils/pub/git_source.dart

Issue 11365196: Move JSSyntaxRegExp to core as a private member. This removes the last refrences to dart:coreimpl. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Make VM's JSSyntaxRegExp private. 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
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]+\:');
if (!URL_LIKE.hasMatch(from)) {
from = getFullPath(from);
}

Powered by Google App Engine
This is Rietveld 408576698