From ed26f4caa1522daaa32a7b0cf2f5f7b0b4aac056 Mon Sep 17 00:00:00 2001 From: fxy060608 Date: Fri, 10 Jun 2022 18:12:03 +0800 Subject: [PATCH] chore: fix typo --- packages/uni-mp-vue/src/helpers/withScopedSlot.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/uni-mp-vue/src/helpers/withScopedSlot.ts b/packages/uni-mp-vue/src/helpers/withScopedSlot.ts index a9162f393..7a296afb8 100644 --- a/packages/uni-mp-vue/src/helpers/withScopedSlot.ts +++ b/packages/uni-mp-vue/src/helpers/withScopedSlot.ts @@ -79,10 +79,10 @@ function createScopedSlotInvoker(instance: ComponentInternalInstance) { return invoker } -const nubmerRE = /^\d+$/ +const numberRE = /^\d+$/ function isInteger(str: unknown): str is number { - return nubmerRE.test(str as string) + return numberRE.test(str as string) } /** -- GitLab