Skip to content

Commit 0927b84

Browse files
fix(gatsby-source-wordpress) HTML link regex to include homepage
1 parent 9fd287b commit 0927b84

File tree

1 file changed

+1
-1
lines changed
  • packages/gatsby-source-wordpress/src/steps/source-nodes/create-nodes

1 file changed

+1
-1
lines changed

packages/gatsby-source-wordpress/src/steps/source-nodes/create-nodes/process-node.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -807,7 +807,7 @@ const replaceFileLinks = async ({
807807

808808
export const getWpLinkRegex = wpUrl =>
809809
new RegExp(
810-
`["']${wpUrl}(?!/wp-content|/wp-admin|/wp-includes)(/[^'"]+)["']`,
810+
`["']${wpUrl}(?!/wp-content|/wp-admin|/wp-includes)(/[^'"]*)["']`,
811811
`gim`
812812
)
813813

0 commit comments

Comments
 (0)