Index: pkg/args/test/args_test.dart |
diff --git a/pkg/args/test/args_test.dart b/pkg/args/test/args_test.dart |
index 611129696af7432fd6d21564a875047fea14c1fd..10c68fe004ade6d7ac3791ed28a5ea0d3872fb34 100644 |
--- a/pkg/args/test/args_test.dart |
+++ b/pkg/args/test/args_test.dart |
@@ -681,7 +681,7 @@ String unindentString(String text) { |
var lines = text.split('\n'); |
// Count the indentation of the last line. |
- var whitespace = const RegExp('^ *'); |
+ var whitespace = new RegExp('^ *'); |
var indent = whitespace.firstMatch(lines[lines.length - 1])[0].length; |
// Drop the last line. It only exists for specifying indentation. |