(str: string)
| 669 | |
| 670 | const MATRIX_PARAM_SEGMENT_RE = /^[^\/()?;=#]+/; |
| 671 | function matchMatrixKeySegments(str: string): string { |
| 672 | const match = str.match(MATRIX_PARAM_SEGMENT_RE); |
| 673 | return match ? match[0] : ''; |
| 674 | } |
| 675 | |
| 676 | const QUERY_PARAM_RE = /^[^=?&#]+/; |
| 677 | // Return the name of the query param at the start of the string or an empty string |