File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1- import * as childPross from 'child_process'
1+ import * as childProcess from 'child_process'
22import * as fs from 'fs-extra'
33import * as path from 'path'
44import * as git from 'simple-git/promise'
@@ -7,10 +7,10 @@ import * as uuid from 'uuid'
77import CaptainConstants from './CaptainConstants'
88import Logger from './Logger'
99import Utils from './Utils'
10- const exec = util . promisify ( childPross . exec )
10+ const exec = util . promisify ( childProcess . exec )
1111
1212export default class GitHelper {
13- static # SSH_PATH_RE = new RegExp (
13+ private static SSH_PATH_RE = new RegExp (
1414 [
1515 / ^ \s * / ,
1616 / (?: (?< proto > [ a - z ] + ) : \/ \/ ) ? / ,
@@ -127,7 +127,7 @@ export default class GitHelper {
127127
128128 // It returns a string like this "ssh://git@github.com:22/caprover/caprover-cli.git"
129129 static sanitizeRepoPathSsh ( input : string ) {
130- const found = input . match ( GitHelper . # SSH_PATH_RE)
130+ const found = input . match ( GitHelper . SSH_PATH_RE )
131131 if ( ! found ) {
132132 throw new Error ( `Malformatted SSH path: ${ input } ` )
133133 }
You can’t perform that action at this time.
0 commit comments