Skip to content

Conversation

machour
Copy link
Contributor

@machour machour commented Sep 1, 2025

Not sure if this is by design, or if it's an overlooked edge case, so I'm opening this PR to highlight some mismatches when using accents / arabic / emojis in URL.

PHP, for example, automatically decodes these for me.

@machour
Copy link
Contributor Author

machour commented Sep 1, 2025

/cc @pcattori since you seem to be actively working on the route-pattern package

Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds test cases to verify how the route-pattern library handles non-ASCII characters in URL patterns and matching, including Arabic text, accented characters, and emojis. The tests explore potential edge cases that may not be properly handled by the current implementation.

  • Added four new test cases covering internationalization scenarios
  • Tests both parameter extraction and static pattern matching with Unicode characters
  • Highlights potential encoding/decoding inconsistencies with non-ASCII URL components

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants