diff options
Diffstat (limited to 'src/config/chapath.nim')
-rw-r--r-- | src/config/chapath.nim | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/config/chapath.nim b/src/config/chapath.nim index c27df1e9..57a8a853 100644 --- a/src/config/chapath.nim +++ b/src/config/chapath.nim @@ -290,3 +290,6 @@ proc fromJSChaPath*(ctx: JSContext; val: JSValue): JSResult[ChaPath] = proc unquote*(p: ChaPath): ChaPathResult[string] = let s = ?unquote(string(p)) return ok(normalizedPath(s)) + +proc unquoteGet*(p: ChaPath): string = + return p.unquote().get |