Remove untildify
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import * as core from "@actions/core"
|
||||
import { Globber, FileGlobber } from "./Globber"
|
||||
import { Artifact } from "./Artifact"
|
||||
import untildify from "untildify"
|
||||
import { expandTilde } from "./PathExpander"
|
||||
import { ArtifactPathValidator } from "./ArtifactPathValidator"
|
||||
import { PathNormalizer } from "./PathNormalizer"
|
||||
|
||||
@@ -55,6 +55,6 @@ export class FileArtifactGlobber implements ArtifactGlobber {
|
||||
}
|
||||
|
||||
private static expandPath(path: string): string {
|
||||
return untildify(path)
|
||||
return expandTilde(path)
|
||||
}
|
||||
}
|
||||
|
||||
6
src/PathExpander.ts
Normal file
6
src/PathExpander.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import os from "os"
|
||||
|
||||
export function expandTilde(path: string): string {
|
||||
return path.replace(/^~(?=$|\/|\\)/, os.homedir())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user