aboutsummaryrefslogtreecommitdiffstats
path: root/apps/kit/src/params/integer.ts
diff options
context:
space:
mode:
Diffstat (limited to 'apps/kit/src/params/integer.ts')
-rw-r--r--apps/kit/src/params/integer.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/kit/src/params/integer.ts b/apps/kit/src/params/integer.ts
new file mode 100644
index 0000000..6e36cd8
--- /dev/null
+++ b/apps/kit/src/params/integer.ts
@@ -0,0 +1,3 @@
+export function match(param: string): boolean {
+ return /^\d+$/.test(param);
+} \ No newline at end of file