diff --git a/package-lock.json b/package-lock.json index 77115f7..37738b3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@filen/sync", - "version": "0.1.90", + "version": "0.1.91", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@filen/sync", - "version": "0.1.90", + "version": "0.1.91", "license": "AGPLv3", "dependencies": { "@filen/sdk": "^0.1.189", diff --git a/package.json b/package.json index 79d55d7..e72ae54 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@filen/sync", - "version": "0.1.90", + "version": "0.1.91", "description": "Filen Sync", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/src/ignorer.ts b/src/ignorer.ts index 8cfbb7a..c40950c 100644 --- a/src/ignorer.ts +++ b/src/ignorer.ts @@ -53,9 +53,15 @@ export class Ignorer { encoding: "utf-8" }) - content = passedContent.split("\n").map(line => line.trim()) + content = passedContent + .split("\n") + .map(line => line.trim()) + .filter(line => line.length > 0) } else { - content = (await this.fetch()).split("\n").map(line => line.trim()) + content = (await this.fetch()) + .split("\n") + .map(line => line.trim()) + .filter(line => line.length > 0) } this.pattern = content