Skip to content

Commit

Permalink
Clarify RegEx requirements (#1981)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jwitz authored Jul 20, 2023
1 parent 5ed9a6d commit 2aef60f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/website/versioned_docs/version-legacy/config-file.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,9 @@ If one `start_urls` item has no `selectors_key` defined, the `default` set will

### Using regular expressions

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.
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.

You can also define a `variables` key that will be injected into your specific URL pattern. The following example makes this variable feature clearer:
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:

```json
{
Expand Down

0 comments on commit 2aef60f

Please sign in to comment.