mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-19 19:04:06 -06:00
fix(helpers): correct regex of function escapePath (#2254)
Some checks are pending
Build and Test / publish-tag (push) Waiting to run
Build and Test / build-and-test (macos-latest) (push) Waiting to run
Build and Test / build-and-test (ubuntu-latest) (push) Waiting to run
Build and Test / build-and-test (windows-latest) (push) Waiting to run
Docker build & push image / build (push) Waiting to run
Some checks are pending
Build and Test / publish-tag (push) Waiting to run
Build and Test / build-and-test (macos-latest) (push) Waiting to run
Build and Test / build-and-test (ubuntu-latest) (push) Waiting to run
Build and Test / build-and-test (windows-latest) (push) Waiting to run
Docker build & push image / build (push) Waiting to run
This commit is contained in:
parent
bacd19c4ea
commit
9c042dd717
@ -7,8 +7,8 @@ import fs from "fs"
|
|||||||
export function escapePath(fp) {
|
export function escapePath(fp) {
|
||||||
return fp
|
return fp
|
||||||
.replace(/\\ /g, " ") // unescape spaces
|
.replace(/\\ /g, " ") // unescape spaces
|
||||||
.replace(/^".*"$/, "$1")
|
.replace(/^"(.*)"$/, "$1")
|
||||||
.replace(/^'.*"$/, "$1")
|
.replace(/^'(.*)'$/, "$1")
|
||||||
.trim()
|
.trim()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user