Skip to content

Commit

Permalink
fix: improve regex
Browse files Browse the repository at this point in the history
  • Loading branch information
yume-chan committed Mar 6, 2024
1 parent f266970 commit 48557f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libraries/scrcpy/src/options/1_17.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export class ScrcpyOptions1_17 extends ScrcpyOptionsBase<
override parseEncoder(line: string): ScrcpyEncoder | undefined {
return ScrcpyOptions1_17.parseEncoder(
line,
/\s+scrcpy --encoder-name '(.*?)'/,
/^\s+scrcpy --encoder-name '([^']+)'$/,
);
}
}
2 changes: 1 addition & 1 deletion libraries/scrcpy/src/options/1_18.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export class ScrcpyOptions1_18 extends ScrcpyOptionsBase<
override parseEncoder(line: string): ScrcpyEncoder | undefined {
return ScrcpyOptions1_17.parseEncoder(
line,
/\s+scrcpy --encoder '(.*?)'/,
/^\s+scrcpy --encoder '([^']+)'$/,
);
}

Expand Down

0 comments on commit 48557f6

Please sign in to comment.