You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(router): handle illegal percent encoding in style route (#300)
* fix(router): handle illegal percent encoding in style route
Navigating to a style URL with a malformed percent-encoding (e.g. an
old bookmark or shared link containing a stray `%`) caused
Uri.decodeComponent to throw an ArgumentError, crashing the widget
build. Decode the path segment safely, falling back to the raw value
when decoding fails.
https://claude.ai/code/session_01BBXUxMtenctm7JQoLpwzmY
* refactor(router): move safeDecodeComponent to navigation_helpers
Promotes the private _safeDecodeComponent helper to a public
safeDecodeComponent function in navigation_helpers.dart so it can be
directly unit-tested. Adds 8 unit tests covering valid encoding,
unicode, no-op strings, and the three malformed-percent-encoding
fallback cases.
https://claude.ai/code/session_01BBXUxMtenctm7JQoLpwzmY
* style: apply dart format to navigation_helpers_test.dart
https://claude.ai/code/session_01BBXUxMtenctm7JQoLpwzmY
---------
Co-authored-by: Claude <noreply@anthropic.com>
0 commit comments