Skip to content

Commit 790aae5

Browse files
chore: format code
1 parent 044e86a commit 790aae5

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# [1.3.0](https://github.com/BuilderIO/gpt-crawler/compare/v1.2.1...v1.3.0) (2024-01-06)
22

3-
43
### Features
54

6-
* add exclude pattern for links in config ([16443ed](https://github.com/BuilderIO/gpt-crawler/commit/16443ed9501624de40d921b8e47e4c35f15bf6b4))
5+
- add exclude pattern for links in config ([16443ed](https://github.com/BuilderIO/gpt-crawler/commit/16443ed9501624de40d921b8e47e4c35f15bf6b4))

src/core.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,9 @@ export async function crawl(config: Config) {
9393
globs:
9494
typeof config.match === "string" ? [config.match] : config.match,
9595
exclude:
96-
typeof config.exclude === "string" ? [config.exclude] : config.exclude ?? [],
96+
typeof config.exclude === "string"
97+
? [config.exclude]
98+
: config.exclude ?? [],
9799
});
98100
},
99101
// Comment this option to scrape the full website.

0 commit comments

Comments
 (0)