Index: utils/tests/pub/test_pub.dart |
diff --git a/utils/tests/pub/test_pub.dart b/utils/tests/pub/test_pub.dart |
index 0c06a418f0ed72080d73016a656cb1116f330bf1..3b45775d9316c60040f8e4daa7fd1a0b2e0e728b 100644 |
--- a/utils/tests/pub/test_pub.dart |
+++ b/utils/tests/pub/test_pub.dart |
@@ -409,7 +409,7 @@ String _packageName(String sourceName, description) { |
switch (sourceName) { |
case "git": |
var url = description is String ? description : description['url']; |
- return basename(url.replaceFirst(new RegExp(r"(\.git)?/?$"), "")); |
+ return basename(url.replaceFirst(const RegExp(r"(\.git)?/?$"), "")); |
case "hosted": |
if (description is String) return description; |
return description['name']; |