(str: string)
| 23 | const PATH_SEGMENT_ENCODINGS = /%(?:2[46BC]|3[ABD]|40)/g; |
| 24 | |
| 25 | export function encodePathSegment(str: string): string { |
| 26 | return encodeURIComponent(str).replace( |
| 27 | PATH_SEGMENT_ENCODINGS, |
| 28 | decodeURIComponent |
| 29 | ); |
| 30 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…