Skip to content

Commit 51bc94b

Browse files
jooolaTylerBarnes
andauthored
fix(gatsby-source-wordpress): Remove search and replace regex literal recommendation (#31413)
Co-authored-by: Tyler Barnes <[email protected]>
1 parent e845dda commit 51bc94b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/gatsby-source-wordpress/docs/plugin-options.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -804,7 +804,7 @@ An array of options to search and replace strings in nodes. See below for option
804804

805805
### searchAndReplace[].search
806806

807-
The regex rule used to search a string. Using a 'regular expression literal' is recommended over a simple regex string.
807+
The regex rule used to search when replacing strings in node data. It will search the stringified JSON of each node to capture strings at any nested depth.
808808

809809
**Field type**: `String`
810810

packages/gatsby-source-wordpress/src/steps/declare-plugin-options-schema.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ When using this option, be sure to gitignore the wordpress-cache directory in th
539539
Joi.object({
540540
search: Joi.string()
541541
.description(
542-
`The regex rule used to search a terme. Using a 'regular expression literal' is recommended over a simple regex string.`
542+
`The regex rule used to search when replacing strings in node data. It will search the stringified JSON of each node to capture strings at any nested depth.`
543543
)
544544
.meta({
545545
example: wrapOptions(`

0 commit comments

Comments
 (0)