Index: sdk/lib/_internal/pub/test/build/warns_on_assets_paths_test.dart |
diff --git a/sdk/lib/_internal/pub/test/build/warns_on_assets_paths_test.dart b/sdk/lib/_internal/pub/test/build/warns_on_assets_paths_test.dart |
index 90c69f0b9bcb3c4da7e1ef375b753705715a602f..c9a19c247ec2fa0acd1b0d1f9d3351220d240df9 100644 |
--- a/sdk/lib/_internal/pub/test/build/warns_on_assets_paths_test.dart |
+++ b/sdk/lib/_internal/pub/test/build/warns_on_assets_paths_test.dart |
@@ -6,12 +6,13 @@ library pub_tests; |
import 'package:path/path.dart' as path; |
+import '../../lib/src/utils.dart'; |
import '../descriptor.dart' as d; |
import '../test_pub.dart'; |
getWarningRegExp(String assetsPath) { |
// Escape backslashes since they are metacharacters in a regex. |
- assetsPath = assetsPath.replaceAll("\\", "\\\\"); |
+ assetsPath = quoteRegExp(assetsPath); |
return new RegExp( |
'^Warning: Pub reserves paths containing "assets" for using assets from ' |
'packages\\. Please rename the path "$assetsPath"\\.\$'); |