Fixes the regex replacing one of the version numbers in the pluginMainFile #10
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
options.regEx
.Technical choices
new RegExp()
. Regexes created with // can't have dynamic content. Because we're now dealing with two types of regex formats in the config (strings and regexes with //), the task needed to be modified as well. This change also secures backward compatibility with other plugins using this repo.new RegExp()
need different escaping. That's where the extra slashes are coming from 😉.Test instructions
News SEO
release/11.7
of News SEO.composer install
andyarn install
in both repos.grunt set-version --new-version=12.3-RC4
in News.grunt update-version
in News.12.3-RC4
, especially https://github.com/Yoast/wpseo-news/blob/trunk/wpseo-news.php#L40.wordpress-seo
release/11.7
of wordpress-seo.composer install
andyarn install
in both repos.grunt set-version --new-version=12.3-RC4
in wordpress-seo.grunt update-version
in wordpress-seo.12.3-RC4
.When everything is okay, release a new version of this repo, and bump the versions in wordpress-seo and News SEO.
Fixes https://github.com/Yoast/wpseo-news/issues/516