Index: utils/pub/hosted_source.dart |
diff --git a/utils/pub/hosted_source.dart b/utils/pub/hosted_source.dart |
index 7529a872fc001d2de5e1e897661c10921d73100c..ef64d59c5c05755d82ef5e11551cdecb50c2b1e9 100644 |
--- a/utils/pub/hosted_source.dart |
+++ b/utils/pub/hosted_source.dart |
@@ -95,7 +95,7 @@ class HostedSource extends Source { |
var parsed = _parseDescription(id.description); |
var url = parsed.last.replaceAll(new RegExp(r"^https?://"), ""); |
var urlDir = replace(url, new RegExp(r'[<>:"\\/|?*%]'), (match) { |
- return '%${match[0].charCodeAt(0)}'; |
+ return '%${match[0].codeUnitAt(0)}'; |
}); |
return new Future.immediate( |