Commit 3a7536e
fix: use encodeURI only, drop URL.canParse per review
Per maintainer review:
- URL.canParse may not be available in all runtimes
- encodeURI handles both absolute and relative URLs correctly
- No need for conditional logic — encodeURI is sufficient
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 21366c1 commit 3a7536e
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| |||
0 commit comments