Closed jcestibariz closed 5 years ago
Which package? intl-messageformat-parser
Describe the bug If a key in a select block contains special characters, like - or /, parse throws SyntaxError: Expected argName but "/" found.
-
/
SyntaxError: Expected argName but "/" found.
To Reproduce Steps to reproduce the behavior:
const parser = require('intl-messageformat-parser'); parser.parse('{x, select, /a-key {Result}}');
Expected behavior The message should be parsed without errors.
Yeah this is intentional since our parser behaves more closely with ICU messageformat spec now (which excludes special char from placeholder)
Which package? intl-messageformat-parser
Describe the bug If a key in a select block contains special characters, like
-
or/
, parse throwsSyntaxError: Expected argName but "/" found.
To Reproduce Steps to reproduce the behavior:
Expected behavior The message should be parsed without errors.