-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(gatsby-source-wordpress): Test html link transforms #29942
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! I would want to advise moving away from execall to match-all https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/matchAll
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this need to be backported?
@wardpeet my understanding is that tests aren't running as part of the backporting process. When I tagged the integration tests as needing backporting Matt mentioned they don't need to be backported. |
I thought you created a function to mitigate a bug, that's all :) |
Ahh, got it! I created the function to make the regexp testable 👍 thanks for checking :) |
Because regexes are stateful in javascript - that's why I was thinking that 😄 |
Interesting! I didn't know that - thanks for the link |
This PR adds a test for html field link transforms (from absolute urls to relative paths).