Skip to content

Commit

Permalink
Fix #23, fixed the issue with reading imported domains list
Browse files Browse the repository at this point in the history
  • Loading branch information
ameshkov committed Feb 1, 2024
1 parent 996fefa commit efd3d4b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 10 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,16 @@ The format is based on [Keep a Changelog][keepachangelog], and this project adhe

## [Unreleased][unreleased]

[unreleased]: https://github.com/AdguardTeam/DeadDomainsLinter/compare/v1.0.16...master
[unreleased]: https://github.com/AdguardTeam/DeadDomainsLinter/compare/v1.0.18...master

## [1.0.18] - 2024-02-01

### Fixed

- Fixed an issue with importing a list of domains. [#23][#23]

[#23]: https://github.com/AdguardTeam/DeadDomainsLinter/issues/23
[1.0.18]: https://github.com/AdguardTeam/DeadDomainsLinter/compare/v1.0.16...v1.0.18

## [1.0.16] - 2024-01-31

Expand Down
2 changes: 1 addition & 1 deletion src/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ async function main() {

try {
predefinedDomains = fs.readFileSync(argv.import).toString()
.split('\r?\n')
.split(/\r?\n/)
.filter((line) => line.trim() !== '');
} catch (ex) {
consola.error(`Failed to read from ${argv.import}: ${ex}`);
Expand Down

0 comments on commit efd3d4b

Please sign in to comment.