From 790aae568219fd25a74fcc8fe1dd2f87cda62368 Mon Sep 17 00:00:00 2001 From: marcelovicentegc Date: Sat, 6 Jan 2024 11:16:48 -0300 Subject: [PATCH] chore: format code --- CHANGELOG.md | 3 +-- src/core.ts | 4 +++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cb3a02ce..8ce001c1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,5 @@ # [1.3.0](https://github.com/BuilderIO/gpt-crawler/compare/v1.2.1...v1.3.0) (2024-01-06) - ### Features -* add exclude pattern for links in config ([16443ed](https://github.com/BuilderIO/gpt-crawler/commit/16443ed9501624de40d921b8e47e4c35f15bf6b4)) +- add exclude pattern for links in config ([16443ed](https://github.com/BuilderIO/gpt-crawler/commit/16443ed9501624de40d921b8e47e4c35f15bf6b4)) diff --git a/src/core.ts b/src/core.ts index 06e0697a..48c56c6e 100644 --- a/src/core.ts +++ b/src/core.ts @@ -93,7 +93,9 @@ export async function crawl(config: Config) { globs: typeof config.match === "string" ? [config.match] : config.match, exclude: - typeof config.exclude === "string" ? [config.exclude] : config.exclude ?? [], + typeof config.exclude === "string" + ? [config.exclude] + : config.exclude ?? [], }); }, // Comment this option to scrape the full website.