Skip to content

Commit

Permalink
fix: ignorer format
Browse files Browse the repository at this point in the history
  • Loading branch information
Dwynr committed Nov 30, 2024
1 parent b222c14 commit 79b03d9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
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": "@filen/sync",
"version": "0.1.90",
"version": "0.1.91",
"description": "Filen Sync",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
10 changes: 8 additions & 2 deletions src/ignorer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 79b03d9

Please sign in to comment.