intl-messageformat-parser
Advanced tools
Comparing version 3.0.2 to 3.0.3
@@ -6,2 +6,13 @@ # Change Log | ||
## [3.0.3](https://github.com/formatjs/formatjs/compare/intl-messageformat-parser@3.0.2...intl-messageformat-parser@3.0.3) (2019-08-07) | ||
### Bug Fixes | ||
* **intl-messageformat-parser:** normalize plural in nested select, fixes [#145](https://github.com/formatjs/formatjs/issues/145) ([215aa6d](https://github.com/formatjs/formatjs/commit/215aa6d)) | ||
## [3.0.2](https://github.com/formatjs/formatjs/compare/intl-messageformat-parser@3.0.1...intl-messageformat-parser@3.0.2) (2019-08-06) | ||
@@ -8,0 +19,0 @@ |
@@ -15,3 +15,3 @@ "use strict"; | ||
// If we're encountering a plural el | ||
if (!types_1.isPluralElement(el)) { | ||
if (!types_1.isPluralElement(el) && !types_1.isSelectElement(el)) { | ||
return; | ||
@@ -18,0 +18,0 @@ } |
{ | ||
"name": "intl-messageformat-parser", | ||
"version": "3.0.2", | ||
"version": "3.0.3", | ||
"description": "Parses ICU Message strings into an AST via JavaScript.", | ||
@@ -46,3 +46,3 @@ "main": "dist/index", | ||
"homepage": "https://github.com/formatjs/formatjs", | ||
"gitHead": "5712b2950f1ca82c7ea987a88a490a28157838fc" | ||
"gitHead": "e4991d253408fd29bbdbf20f9d133fa7f3714ac0" | ||
} |
@@ -5,3 +5,4 @@ import { | ||
isLiteralElement, | ||
LiteralElement | ||
LiteralElement, | ||
isSelectElement | ||
} from './types'; | ||
@@ -21,3 +22,3 @@ import { parse } from './parser'; | ||
// If we're encountering a plural el | ||
if (!isPluralElement(el)) { | ||
if (!isPluralElement(el) && !isSelectElement(el)) { | ||
return; | ||
@@ -24,0 +25,0 @@ } |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
269302
7150