rsnext/packages/next/lib
JJ Kasper 4d291bd810
Use regex lexer for gathering named groups from has (#23626)
This is a follow-up to https://github.com/vercel/next.js/pull/23588 to update to use a regex lexer to gather the named regex groups instead of attempting to gather them through executing the regex since it can fail to gather the regex groups when they are using specific matching. This also ensures we don't pass the value as a segment when value is defined and it doesn't use a capture group. Additional tests are added to cover these cases and documentation updated to reflect this. 

Closes: https://github.com/vercel/next.js/issues/23415

## Bug

- [x] Related issues linked using `fixes #number`
- [x] Integration tests added

## Documentation / Examples

- [x] Make sure the linting passes
2021-04-13 12:34:51 +00:00
..
regexr Use regex lexer for gathering named groups from has (#23626) 2021-04-13 12:34:51 +00:00
typescript fix(next): respect extends in tsconfig with exclude and include (#16619) 2021-01-24 14:24:36 +01:00
coalesced-function.ts Upgrade to Prettier 2 (#13061) 2020-05-18 15:24:37 -04:00
constants.ts Update err.sh links to use nextjs.org/docs/messages instead (#23353) 2021-03-29 10:25:00 +02:00
file-exists.ts Eliminate public folder enumeration (#14042) 2020-06-10 20:35:34 +00:00
find-config.ts
find-pages-dir.ts
get-package-version.ts perf(next): use require.resolve instead of resolve (#19518) 2021-01-11 14:43:08 +00:00
is-serializable-props.ts Fix grammar in isSerializableProps (#19072) 2020-11-12 16:07:14 +00:00
load-custom-routes.ts Use regex lexer for gathering named groups from has (#23626) 2021-04-13 12:34:51 +00:00
non-nullable.ts temporary: re-flag font optimization (#20372) 2020-12-21 19:26:00 +00:00
oxford-comma-list.ts refactor(typescript): extract preflight functions (#13510) 2020-05-28 23:39:46 +00:00
pretty-bytes.ts
recursive-copy.ts chore(next): export/lib/next-server missing types (#13320) 2020-05-24 22:44:05 +00:00
recursive-delete.ts Upgrade to Prettier 2 (#13061) 2020-05-18 15:24:37 -04:00
recursive-readdir.ts
verifyTypeScriptSetup.ts ncc 0.25.0 upgrade and fixes (#18873) 2020-11-06 02:33:14 +00:00