(text: string)
| 30 | * @return {String} URL encode string. |
| 31 | */ |
| 32 | export function encodeURIComponent(text: string): string { |
| 33 | try { |
| 34 | return global.encodeURIComponent(text); |
| 35 | } catch { |
| 36 | return text; |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | /** |
| 41 | * Safe decodeURIComponent, won't throw any error. |
no outgoing calls
no test coverage detected
searching dependent graphs…