Skip to content

Commit

Permalink
Better matching
Browse files Browse the repository at this point in the history
  • Loading branch information
ThetaSinner committed Dec 21, 2023
1 parent 715b778 commit f68aed0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ts/src/local/conductor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,11 +165,11 @@ export class Conductor implements IConductor {
const createConductorPromise = new Promise<Conductor>((resolve, reject) => {
createConductorProcess.stdout.on("data", (data: Buffer) => {
logger.debug(`creating conductor config\n${data.toString()}`);
const tmpDirMatches = data
const tmpDirMatches = [...data
.toString()
.match(/ConfigRootPath\("(.*?)"\)/g);
.matchAll(/ConfigRootPath\("(.*?)"\)/g)];
if (tmpDirMatches) {
conductor.conductorDir = tmpDirMatches[0];
conductor.conductorDir = tmpDirMatches[0][1];
}
});
createConductorProcess.stdout.on("end", () => {
Expand Down

0 comments on commit f68aed0

Please sign in to comment.