mirror of
https://github.com/Kuingsmile/PicList.git
synced 2025-01-23 06:38:13 -05:00
parent
914ec15361
commit
0767fbcea4
@ -19,9 +19,10 @@ export default class GithubApi {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static createKey (path: string | undefined, fileName: string): string {
|
private static createKey (path: string | undefined, fileName: string): string {
|
||||||
|
const formatedFileName = fileName.replace(/%2F/g, '/')
|
||||||
return path && path !== '/'
|
return path && path !== '/'
|
||||||
? `${path.replace(/^\/+|\/+$/, '')}/${fileName}`
|
? `${path.replace(/^\/+|\/+$/, '')}/${formatedFileName}`
|
||||||
: fileName
|
: formatedFileName
|
||||||
}
|
}
|
||||||
|
|
||||||
static async delete (configMap: IConfigMap): Promise<boolean> {
|
static async delete (configMap: IConfigMap): Promise<boolean> {
|
||||||
|
Loading…
Reference in New Issue
Block a user