mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
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.
|
||||
*/
|
||||
public setHyperlink(data: string): boolean {
|
||||
const args = data.split(';');
|
||||
const args = data.match(/^([^;]*);(.*)$/)?.slice(1) ?? [];
|
||||
if (args.length < 2) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user