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

Unified Diff: utils/pub/hosted_source.dart

Issue 10981031: Convert raw strings in pub (and apidoc) to new syntax. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Respond to review. Created 8 years, 3 months 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/version.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/pub/hosted_source.dart
diff --git a/utils/pub/hosted_source.dart b/utils/pub/hosted_source.dart
index 37ad288e1f65c30be8767e41737e3e8d76799430..3c4963419b877876a2e4b988067cd437f486b99f 100644
--- a/utils/pub/hosted_source.dart
+++ b/utils/pub/hosted_source.dart
@@ -96,8 +96,8 @@ class HostedSource extends Source {
*/
String systemCacheDirectory(PackageId id) {
var parsed = _parseDescription(id.description);
- var url = parsed.last.replaceAll(new RegExp(@"^https?://"), "");
- var urlDir = replace(url, new RegExp(@'[<>:"\\/|?*%]'), (match) {
+ var url = parsed.last.replaceAll(new RegExp(r"^https?://"), "");
+ var urlDir = replace(url, new RegExp(r'[<>:"\\/|?*%]'), (match) {
return '%${match[0].charCodeAt(0)}';
});
return join(systemCacheRoot, urlDir, "${parsed.first}-${id.version}");
« no previous file with comments | « utils/apidoc/mdn/extract.dart ('k') | utils/pub/version.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698