(params: {[key: string]: string})
| 789 | } |
| 790 | |
| 791 | private parseParam(params: {[key: string]: string}): void { |
| 792 | const key = matchMatrixKeySegments(this.remaining); |
| 793 | if (!key) { |
| 794 | return; |
| 795 | } |
| 796 | this.capture(key); |
| 797 | let value = ''; |
| 798 | if (this.consumeOptional('=')) { |
| 799 | const valueMatch = matchSegments(this.remaining); |
| 800 | if (valueMatch) { |
| 801 | value = valueMatch; |
| 802 | this.capture(value); |
| 803 | } |
| 804 | } |
| 805 | |
| 806 | setUrlDerivedKey(params, decode(key), decode(value)); |
| 807 | } |
| 808 | |
| 809 | // Parse a single query parameter `name[=value]` |
| 810 | private parseQueryParam(params: Params): void { |
no test coverage detected