Skip to content

Commit

Permalink
Fix _locale regex to allow all valid Intl locales
Browse files Browse the repository at this point in the history
  • Loading branch information
LucaGallinari committed Jul 23, 2021
1 parent accb0fe commit c0f7549
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
resource: "@WebgriffeSyliusTableRateShippingPlugin/Resources/config/shop_routing.yml"
prefix: /{_locale}
requirements:
_locale: ^[a-z]{2}(?:_[A-Z]{2})?$
_locale: ^[A-Za-z]{2,4}(_([A-Za-z]{4}|[0-9]{3}))?(_([A-Za-z]{2}|[0-9]{3}))?$
webgriffe_sylius_table_rate_shipping_plugin_admin:
resource: "@WebgriffeSyliusTableRateShippingPlugin/Resources/config/admin_routing.yml"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ webgriffe_sylius_table_rate_shipping_plugin_shop:
resource: "@WebgriffeSyliusTableRateShippingPlugin/Resources/config/shop_routing.yml"
prefix: /{_locale}
requirements:
_locale: ^[a-z]{2}(?:_[A-Z]{2})?$
_locale: ^[A-Za-z]{2,4}(_([A-Za-z]{4}|[0-9]{3}))?(_([A-Za-z]{2}|[0-9]{3}))?$

webgriffe_sylius_table_rate_shipping_plugin_admina:
resource: "@WebgriffeSyliusTableRateShippingPlugin/Resources/config/admin_routing.yml"
Expand Down

0 comments on commit c0f7549

Please sign in to comment.