Skip to content

Commit 2aef60f

Browse files
authored
Clarify RegEx requirements (#1981)
This section of the doc made it seem like a URL object is required to use RegEx, but they work fine in just a string array.
1 parent 5ed9a6d commit 2aef60f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/website/versioned_docs/version-legacy/config-file.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,9 @@ If one `start_urls` item has no `selectors_key` defined, the `default` set will
111111

112112
### Using regular expressions
113113

114-
The `start_urls` and `stop_urls` options also enable you to use regular expressions to express more complex patterns. This object must at least contain a `url` key targeting a reachable page.
114+
The `start_urls` and `stop_urls` options also enable you to use regular expressions to express more complex patterns. You can define either an array of regular expressions or an object. The object must at least contain a `url` key targeting a reachable page.
115115

116-
You can also define a `variables` key that will be injected into your specific URL pattern. The following example makes this variable feature clearer:
116+
If you define your regular expression as an object, you can also define a `variables` key that will be injected into your specific URL pattern. The following example makes this variable feature clearer:
117117

118118
```json
119119
{

0 commit comments

Comments
 (0)