Skip to content

Commit

Permalink
Fix #4944 by only splitting on the first ";" in InputHandler.setHyper…
Browse files Browse the repository at this point in the history
…link().
  • Loading branch information
josiahhudson committed Mar 15, 2024
1 parent b7b9d27 commit b40e58b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/InputHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2972,7 +2972,7 @@ export class InputHandler extends Disposable implements IInputHandler {
* feedback. Use `OSC 8 ; ; BEL` to finish the current hyperlink.
*/
public setHyperlink(data: string): boolean {
const args = data.split(';');
const args = data.match(/^([^;]*);(.*)$/)?.slice(1) ?? [];
if (args.length < 2) {
return false;
}
Expand Down

0 comments on commit b40e58b

Please sign in to comment.