Skip to content

Commit bcb4a9c

Browse files
author
Kim Biesbjerg
committed
Fix bug where obsolete strings were not removed when --clean was used. Closes #29
1 parent 5ad1fe6 commit bcb4a9c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@biesbjerg/ngx-translate-extract",
3-
"version": "2.2.0",
3+
"version": "2.2.1",
44
"description": "Extract strings from projects using ngx-translate",
55
"main": "dist/index.js",
66
"typings": "dist/index.d.ts",

src/cli/tasks/extract.task.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export class ExtractTask implements TaskInterface {
104104

105105
if (this._options.clean) {
106106
const collectionCount = processedCollection.count();
107-
processedCollection = processedCollection.intersect(processedCollection);
107+
processedCollection = processedCollection.intersect(collection);
108108
const removeCount = collectionCount - processedCollection.count();
109109
if (removeCount > 0) {
110110
this._out(chalk.dim('- removed %d obsolete strings'), removeCount);

0 commit comments

Comments
 (0)