1
0
Fork 0
peertube/shared/core-utils/common/number.ts
Chocobozzz 4638cd713d
Don't inject untrusted input
Even if it's already checked in middlewares
It's better to have safe modals too
2022-11-15 14:41:55 +01:00

7 lines
94 B
TypeScript

function forceNumber (value: any) {
return parseInt(value + '')
}
export {
forceNumber
}