fix(client): file: prefix in fileName attribute
This commit is contained in:
parent
852af9ffab
commit
37398d1080
1 changed files with 1 additions and 1 deletions
|
@ -99,7 +99,7 @@ export function svgPathToFile(path: string): Buffer {
|
|||
)
|
||||
}
|
||||
|
||||
const FILENAME_REGEX = /^(\/?.+[/\\])*(.+\..+)$/
|
||||
const FILENAME_REGEX = /^(?:file:)?(\/?.+[/\\])*(.+\..+)$/
|
||||
|
||||
export function extractFileName(path: string): string {
|
||||
const m = path.match(FILENAME_REGEX)
|
||||
|
|
Loading…
Reference in a new issue