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

Unified Diff: pkg/analyzer_experimental/test/utils.dart

Issue 14865015: Fix a RegExp in analyzer_experimental/test/utils for Windows. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer_experimental/test/utils.dart
diff --git a/pkg/analyzer_experimental/test/utils.dart b/pkg/analyzer_experimental/test/utils.dart
index 62f99095be6943ebc4efeb7e7ca9e433cf12327b..92bf53e5a98224e9e548a2205483a518f42f0e6f 100644
--- a/pkg/analyzer_experimental/test/utils.dart
+++ b/pkg/analyzer_experimental/test/utils.dart
@@ -25,7 +25,8 @@ String errorsForFile(String contents) {
parseDartFile(path);
} on AnalyzerErrorGroup catch (e) {
return e.toString().replaceAllMapped(
- new RegExp(r"^(Error on line \d+ of )([^:]+): .*$", multiLine: true),
+ new RegExp(r"^(Error on line \d+ of )((?:[A-Z]+:)?[^:]+): .*$",
+ multiLine: true),
(match) => match[1] + pathos.basename(match[2]) + ': ...');
}
return null;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698