Skip to content

Commit 8d55708

Browse files
committed
Tidied up a few things
1 parent 644b283 commit 8d55708

2 files changed

Lines changed: 1 addition & 20 deletions

File tree

public/pages/Home/components/PostCache.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,5 @@ export const clearCache = () => {
5050
}
5151

5252
export const setPostCreated = () => {
53-
cache.local.set("POST_CREATED_SUCCESS", "true")
53+
cache.session.set("POST_CREATED_SUCCESS", "true")
5454
}

public/services/bkey.ts

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -72,22 +72,3 @@ export const generateBkey = (fileName: string): string => {
7272

7373
return `${folder}/${randomString}-${sanitizedFileName}`
7474
}
75-
76-
/**
77-
* Extracts all bkeys from a given content string (markdown)
78-
* @param content The content string to extract bkeys from
79-
* @returns An array of bkeys found in the content
80-
*/
81-
export const extractImageBkeys = (content: string): string[] => {
82-
if (!content) return []
83-
84-
const regex = /!\[\]\(fider-image:([a-zA-Z0-9_/.-]+)\)/g
85-
const bkeys: string[] = []
86-
let match
87-
88-
while ((match = regex.exec(content)) !== null) {
89-
bkeys.push(match[1])
90-
}
91-
92-
return bkeys
93-
}

0 commit comments

Comments
 (0)