File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ type Config = {
3
3
/** URL to start the crawl */
4
4
url : string ;
5
5
/** Pattern to match against for links on a page to subsequently crawl */
6
- match : string ;
6
+ match : string | string [ ] ;
7
7
/** Selector to grab the inner text from */
8
8
selector : string ;
9
9
/** Don't crawl more than this many pages */
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ if (process.env.NO_CRAWL !== "true") {
51
51
// Extract links from the current page
52
52
// and add them to the crawling queue.
53
53
await enqueueLinks ( {
54
- globs : [ config . match ] ,
54
+ globs : typeof config . match === "string" ? [ config . match ] : config . match ,
55
55
} ) ;
56
56
} ,
57
57
// Comment this option to scrape the full website.
You can’t perform that action at this time.
0 commit comments