(str: string)
| 676 | const QUERY_PARAM_RE = /^[^=?&#]+/; |
| 677 | // Return the name of the query param at the start of the string or an empty string |
| 678 | function matchQueryParams(str: string): string { |
| 679 | const match = str.match(QUERY_PARAM_RE); |
| 680 | return match ? match[0] : ''; |
| 681 | } |
| 682 | |
| 683 | const QUERY_PARAM_VALUE_RE = /^[^&#]+/; |
| 684 | // Return the value of the query param at the start of the string or an empty string |