(str)
| 131 | return protocol + parts.join("/") + query; |
| 132 | |
| 133 | function fixedEncodeURIComponent(str) { |
| 134 | return encodeURIComponent(str).replace(/[!'()*]/g, function (c) { |
| 135 | return "%" + c.charCodeAt(0).toString(16); |
| 136 | }); |
| 137 | } |
| 138 | }, |
| 139 | /** |
| 140 | * Gets pathname from url eg. gets '/foo/bar' from 'ftp://myhost.com/foo/bar' |