Fix https://github.com/xtermjs/xterm.js/issues/4944 by only splitting on the first ";" in InputHandler.setHyperlink().
This commit is contained in:
@@ -2972,7 +2972,7 @@ export class InputHandler extends Disposable implements IInputHandler {
|
|||||||
* feedback. Use `OSC 8 ; ; BEL` to finish the current hyperlink.
|
* feedback. Use `OSC 8 ; ; BEL` to finish the current hyperlink.
|
||||||
*/
|
*/
|
||||||
public setHyperlink(data: string): boolean {
|
public setHyperlink(data: string): boolean {
|
||||||
const args = data.split(';');
|
const args = data.match(/^([^;]*);(.*)$/)?.slice(1) ?? [];
|
||||||
if (args.length < 2) {
|
if (args.length < 2) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user