There was an error while loading. Please reload this page.
1 parent bfadc37 commit 07a33b4Copy full SHA for 07a33b4
src/api/utils.ts
@@ -7,10 +7,10 @@ import {
7
} from "./types";
8
9
export const idToUuid = (path: string) =>
10
- `${path.substr(0, 8)}-${path.substr(8, 4)}-${path.substr(
+ `${path.slice(0, 8)}-${path.slice(8, 4)}-${path.slice(
11
12,
12
4
13
- )}-${path.substr(16, 4)}-${path.substr(20)}`;
+ )}-${path.slice(16, 4)}-${path.slice(20)}`;
14
15
export const parsePageId = (id: string) => {
16
if (id) {
0 commit comments