Commit e674640
Fix cleanUrl function to properly handle subpath imports with query/hash
- Preserve # prefix and path for subpath imports
- Remove query parameters and hash fragments after the path
- Handle edge cases: #path?query, #path#hash, #path?query#hash
Co-authored-by: Somhairle MacLeòid <penalosa@users.noreply.github.com>1 parent f79b608 commit e674640
1 file changed
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
48 | 66 | | |
49 | 67 | | |
50 | 68 | | |
| |||
0 commit comments