| Index: pkg/compiler/lib/src/util/uri_extras.dart
|
| diff --git a/pkg/compiler/lib/src/util/uri_extras.dart b/pkg/compiler/lib/src/util/uri_extras.dart
|
| index aa8cdcf7f129271ecbf3c01f5a395248435cc56c..516437889953af63fd2ecd159822fbacc1d0a748 100644
|
| --- a/pkg/compiler/lib/src/util/uri_extras.dart
|
| +++ b/pkg/compiler/lib/src/util/uri_extras.dart
|
| @@ -32,13 +32,13 @@ String relativize(Uri base, Uri uri, bool isWindows) {
|
| if (base.userInfo == uri.userInfo &&
|
| equalsNCS(base.host, uri.host) &&
|
| base.port == uri.port &&
|
| - uri.query == "" && uri.fragment == "") {
|
| + uri.query == "" &&
|
| + uri.fragment == "") {
|
| if (normalize(uri.path).startsWith(normalize(base.path))) {
|
| return uri.path.substring(base.path.lastIndexOf('/') + 1);
|
| }
|
|
|
| - if (!base.path.startsWith('/') ||
|
| - !uri.path.startsWith('/')) {
|
| + if (!base.path.startsWith('/') || !uri.path.startsWith('/')) {
|
| return uri.toString();
|
| }
|
|
|
| @@ -47,7 +47,7 @@ String relativize(Uri base, Uri uri, bool isWindows) {
|
| int common = 0;
|
| int length = min(uriParts.length, baseParts.length);
|
| while (common < length &&
|
| - normalize(uriParts[common]) == normalize(baseParts[common])) {
|
| + normalize(uriParts[common]) == normalize(baseParts[common])) {
|
| common++;
|
| }
|
| if (common == 1 || (isWindows && common == 2)) {
|
|
|