Skip to content

Conversation

@moon0326
Copy link
Contributor

All Submissions:

Changes proposed in this Pull Request:

Closes #36120

This PR updates regex used in the country select control to match a country name or - state. The previous change only matched a country name

How to test the changes in this Pull Request:

  1. Start OBW
  2. Type a country name and confirm it matches a country
  3. Type a state name and confirm it matches a state

Other information:

  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your changes, as applicable?
  • Have you created a changelog file for each project being changed, ie pnpm --filter=<project> changelog add?

FOR PR REVIEWER ONLY:

  • I have reviewed that everything is sanitized/escaped appropriately for any SQL or XSS injection possibilities. I made sure Linting is not ignored or disabled.

@moon0326 moon0326 requested review from a team, chihsuan and ilyasfoo December 23, 2022 03:58
@github-actions github-actions bot added focus: react admin plugin: woocommerce Issues related to the WooCommerce Core plugin. labels Dec 23, 2022
ilyasfoo
ilyasfoo previously approved these changes Dec 23, 2022
Copy link
Contributor

@ilyasfoo ilyasfoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested well, LGTM!

@github-actions
Copy link
Contributor

github-actions bot commented Dec 23, 2022

Test Results Summary

Commit SHA: f43c799

Test 🧪Passed ✅Failed 🚨Broken 🚧Skipped ⏭️Unknown ❔Total 📊Duration ⏱️
API Tests25900202611m 3s
E2E Tests187006019316m 3s

To view the full API test report, click here.
To view the full E2E test report, click here.
To view all test reports, visit the WooCommerce Test Reports Dashboard.

@moon0326 moon0326 merged commit 52640de into trunk Dec 23, 2022
@moon0326 moon0326 deleted the update/36120-selectcontrol-filtering-only-filters-from-position-0 branch December 23, 2022 05:30
@github-actions github-actions bot added this to the 7.4.0 milestone Dec 23, 2022
@roykho roykho modified the milestones: 7.4.0, 7.3.0 Dec 29, 2022
github-actions bot pushed a commit that referenced this pull request Dec 29, 2022
* Update regex to match country name or " - region "

* Add changelog

* Fix style
roykho pushed a commit that referenced this pull request Dec 29, 2022
* Update country select control regex (#36159)

* Update regex to match country name or " - region "

* Add changelog

* Fix style

* Prep for cherry pick 36159

Co-authored-by: Moon <[email protected]>
Co-authored-by: WooCommerce Bot <[email protected]>
joelclimbsthings pushed a commit that referenced this pull request Jan 6, 2023
* Update regex to match country name or " - region "

* Add changelog

* Fix style
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

plugin: woocommerce Issues related to the WooCommerce Core plugin.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SelectControl filtering only filters from position 0 of a text

4 participants