From efd3d4bfefde4e1b497f86614982c2b9bdc63807 Mon Sep 17 00:00:00 2001 From: Andrey Meshkov Date: Thu, 1 Feb 2024 17:27:19 +0300 Subject: [PATCH] Fix #23, fixed the issue with reading imported domains list --- CHANGELOG.md | 11 ++++++++++- src/cli.js | 2 +- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0e6b464..fe04430 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/src/cli.js b/src/cli.js index 9ddebba..e9baf2e 100755 --- a/src/cli.js +++ b/src/cli.js @@ -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}`);