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

Unified Diff: lib/src/paths.dart

Issue 14910007: Fix breaking change from next SDK (Closed) Base URL: git@github.com:dart-lang/web-ui.git@master
Patch Set: Created 7 years, 8 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 | « lib/src/analyzer.dart ('k') | pubspec.yaml » ('j') | pubspec.yaml » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/paths.dart
diff --git a/lib/src/paths.dart b/lib/src/paths.dart
index 5424736eb923af7224c14f9ad804038d44ded11f..510887d47bbfab1024d727d10df4aabd03b7bc66 100644
--- a/lib/src/paths.dart
+++ b/lib/src/paths.dart
@@ -141,7 +141,7 @@ class PathMapper {
* [target] is not under [_baseDir].
*/
String transformUrl(String src, String target) {
- if (new Uri.fromString(target).isAbsolute) return target;
+ if (Uri.parse(target).isAbsolute) return target;
if (path.isAbsolute(target)) return target;
return toUrl(path.normalize(path.relative(
path.join(path.dirname(src), target), from: outputDirPath(src))));
« no previous file with comments | « lib/src/analyzer.dart ('k') | pubspec.yaml » ('j') | pubspec.yaml » ('J')

Powered by Google App Engine
This is Rietveld 408576698