Skip to content

Commit bf0dd3a

Browse files
author
issayah
committed
substr deprecation fix
1 parent 657e7d8 commit bf0dd3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/getID.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
export default function (suffix = ''): string {
2-
return `__BVID__${Math.random().toString().substr(2, 6)}___BV_${suffix}__`
2+
return `__BVID__${Math.random().toString().slice(2, 8)}___BV_${suffix}__`
33
}

0 commit comments

Comments
 (0)