Skip to content

Commit 688ad25

Browse files
committedMar 1, 2015
Update Jed option to strip all first items
The new Jed format (>=1.1.0) does not have the initial "null" item for singulars AND ALSO doesn't have the plural form at the 0th position. This is updated now.
1 parent f3bc85b commit 688ad25

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed
 

‎lib/parse.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ module.exports = function(buffer, options) {
7373
};
7474
if (options.format === 'jed1.x'){
7575
for (key in result) {
76-
if (result.hasOwnProperty(key) && key !== '' && result[key][0] === null){
76+
if (result.hasOwnProperty(key) && key !== ''){
7777
result[key].shift();
7878
}
7979
}

‎test/fixtures/pl-jed1.x.json

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
"to jest pierwsza linia\nto jest następny\nale to jest ostatnia\n"
1515
],
1616
"one product": [
17-
"%d products",
1817
"jeden produkt",
1918
"%d produkty",
2019
"%d produktów"

0 commit comments

Comments
 (0)
Please sign in to comment.