(part: string)
| 510 | } |
| 511 | |
| 512 | function decodeQueryParamPart(part: string): string { |
| 513 | // http://www.w3.org/TR/html401/interact/forms.html#h-17.13.4.1 |
| 514 | part = part.replace(/\+/gm, "%20"); |
| 515 | let result: string; |
| 516 | try { |
| 517 | result = decodeURIComponent(part); |
| 518 | } catch (error) { |
| 519 | result = ""; |
| 520 | } |
| 521 | return result; |
| 522 | } |
| 523 | |
| 524 | export class RouteRecognizer<THandler = string> { |
| 525 | private rootState: State<THandler>; |
no outgoing calls
no test coverage detected
searching dependent graphs…