File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -50,5 +50,5 @@ export const clearCache = () => {
5050}
5151
5252export const setPostCreated = ( ) => {
53- cache . local . set ( "POST_CREATED_SUCCESS" , "true" )
53+ cache . session . set ( "POST_CREATED_SUCCESS" , "true" )
5454}
Original file line number Diff line number Diff 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 = / ! \[ \] \( f i d e r - i m a g e : ( [ a - z A - Z 0 - 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- }
You can’t perform that action at this time.
0 commit comments