diff --git a/packages/uni-mp-vue/src/helpers/withScopedSlot.ts b/packages/uni-mp-vue/src/helpers/withScopedSlot.ts index a9162f393795589a4f889800dfc5040de401507e..7a296afb87465c292d6fb13f30671ea59c7e9418 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) } /**