We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af96c7a commit d8a016dCopy full SHA for d8a016d
icu4j/main/core/src/main/java/com/ibm/icu/message2/MFParser.java
@@ -650,10 +650,8 @@ private MFDataModel.Variant getVariant() throws MFParseException {
650
}
651
keys.add(key);
652
653
- // Only want to skip whitespace if we parsed at least one key
654
- if (!keys.isEmpty()) {
655
- skipOptionalWhitespaces();
656
- }
+ // Trailing whitespace is allowed after the message
+ skipOptionalWhitespaces();
657
if (input.atEnd()) {
658
checkCondition(
659
keys.isEmpty(), "After selector keys it is mandatory to have a pattern.");
0 commit comments