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

Unified Diff: lib/src/icu_parser.dart

Issue 1151133002: Allow spaces between the identifier and the translation when parsing ARB files (Closed) Base URL: https://github.com/dart-lang/intl.git@master
Patch Set: Make it 0.12.4 Created 5 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 | « CHANGELOG.md ('k') | pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/icu_parser.dart
diff --git a/lib/src/icu_parser.dart b/lib/src/icu_parser.dart
index c07934af42b0af4712b92a4b271f028b30413e9c..15c47b4e49c3c4be79d3b90a37bddd23b527f634 100644
--- a/lib/src/icu_parser.dart
+++ b/lib/src/icu_parser.dart
@@ -33,7 +33,7 @@ class IcuParser {
get nonIcuMessageText => normalText.plus().map((x) => x.join());
get twoSingleQuotes => string("''").map((x) => "'");
get number => digit().plus().flatten().trim().map(int.parse);
- get id => (letter() & (word() | char("_")).star()).flatten();
+ get id => (letter() & (word() | char("_")).star()).flatten().trim();
get comma => char(",").trim();
/**
« no previous file with comments | « CHANGELOG.md ('k') | pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698