Skip to content

Commit

Permalink
Filter remote keys in a case-sensitive manner
Browse files Browse the repository at this point in the history
  • Loading branch information
extempl committed Jan 11, 2022
1 parent 7bd3192 commit 5f602eb
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
4 changes: 4 additions & 0 deletions core.js
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,10 @@ async function getRemoteKeys (config = {}) {
keys = keys.concat(newKeys.items);
}

if (config.filter_keys) {
keys = keys.filter(key => config.filter_keys.includes(key.key_name[platform]))
}

return keys;
}

Expand Down
4 changes: 4 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,10 @@ async function getRemoteKeys (config = {}) {
keys = keys.concat(newKeys.items);
}

if (config.filter_keys) {
keys = keys.filter(key => config.filter_keys.includes(key.key_name[platform]))
}

return keys;
}

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "push-lokalise-keys",
"version": "4.0.16",
"version": "4.0.17",
"description": "",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 5f602eb

Please sign in to comment.