Fix https://github.com/xtermjs/xterm.js/issues/4944 by only splitting on the first ";" in InputHandler.setHyperlink().

This commit is contained in:
Josiah Hudson
2024-03-15 17:40:21 -04:00
parent b7b9d27627
commit b40e58bc77
+1 -1
View File
@@ -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;
}