Skip to content

Commit 93274ad

Browse files
committed
Fix missing number type in lens Id validation
1 parent 7e1f359 commit 93274ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/helper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ function isLensUuid(str) {
187187
}
188188

189189
function isLensId(str) {
190-
if (typeof str !== 'string') return false;
190+
if (typeof str !== 'string' && typeof str !== 'number') return false;
191191
const id = /^[0-9]{11,16}$/gi;
192192
return id.test(str);
193193
}

0 commit comments

Comments
 (0)