We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a94fea6 commit d261b08Copy full SHA for d261b08
packages/router/src/experimental/route-resolver/matchers/param-parsers/integers.ts
@@ -4,7 +4,7 @@ import { ParamParser } from './types'
4
const PARAM_INTEGER_SINGLE = {
5
get: (value: string | null) => {
6
const num = Number(value)
7
- if (value && Number.isInteger(num)) {
+ if (value && Number.isSafeInteger(num)) {
8
return num
9
}
10
throw miss()
0 commit comments