Index: samples-dev/swarm/swarm_ui_lib/util/Uri.dart |
diff --git a/samples-dev/swarm/swarm_ui_lib/util/Uri.dart b/samples-dev/swarm/swarm_ui_lib/util/Uri.dart |
index a9f4b5c9c771f31d0f98c7b9abaf7e91d8a4f822..28e05b5cf2816a86ddbdf7564c5deb4cb5820f20 100644 |
--- a/samples-dev/swarm/swarm_ui_lib/util/Uri.dart |
+++ b/samples-dev/swarm/swarm_ui_lib/util/Uri.dart |
@@ -51,12 +51,13 @@ class SwarmUri { |
// TODO(terry): Added b/5096547 to track replace should by default behave |
// like replaceAll to avoid a problematic usage pattern. |
- return component.replaceAll(':', '%3A') |
- .replaceAll('/', '%2F') |
- .replaceAll('?', '%3F') |
- .replaceAll('=', '%3D') |
- .replaceAll('&', '%26') |
- .replaceAll(' ', '%20'); |
+ return component |
+ .replaceAll(':', '%3A') |
+ .replaceAll('/', '%2F') |
+ .replaceAll('?', '%3F') |
+ .replaceAll('=', '%3D') |
+ .replaceAll('&', '%26') |
+ .replaceAll(' ', '%20'); |
} |
/** |
@@ -67,11 +68,12 @@ class SwarmUri { |
static String decodeComponent(String component) { |
if (component == null) return component; |
- return component.replaceAll('%3A', ':') |
- .replaceAll('%2F', '/') |
- .replaceAll('%3F', '?') |
- .replaceAll('%3D', '=') |
- .replaceAll('%26', '&') |
- .replaceAll('%20', ' '); |
+ return component |
+ .replaceAll('%3A', ':') |
+ .replaceAll('%2F', '/') |
+ .replaceAll('%3F', '?') |
+ .replaceAll('%3D', '=') |
+ .replaceAll('%26', '&') |
+ .replaceAll('%20', ' '); |
} |
} |