Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[router]: refactor matchArrayGroupName to be similar to matchGroupName (
#27459) # Why `matchArrayGroupName` is similar to `matchGroupName` but its regex was implemented differently and it returned all groups, not just the first one This PR keeps the functionality & regex of `matchArrayGroupName` to be similar to `matchGroupName`. This addresses some bugs with `matchArrayGroupName` where it incorrectly handled `((foo),(bar))` # How <!-- How did you build this feature or fix this bug and why? --> # Test Plan <!-- Please describe how you tested this change and how a reviewer could reproduce your test, especially if this PR does not include automated tests! If possible, please also provide terminal output and/or screenshots demonstrating your test/reproduction. --> # Checklist <!-- Please check the appropriate items below if they apply to your diff. This is required for changes to Expo modules. --> - [ ] Documentation is up to date to reflect these changes (eg: https://docs.expo.dev and README.md). - [ ] Conforms with the [Documentation Writing Style Guide](https://github.com/expo/expo/blob/main/guides/Expo%20Documentation%20Writing%20Style%20Guide.md) - [ ] This diff will work correctly for `npx expo prebuild` & EAS Build (eg: updated a module plugin). --------- Co-authored-by: Expo Bot <34669131+expo-bot@users.noreply.github.com>
- Loading branch information