mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-17 05:58:41 -09:00
term: handle legacy sh shell
This commit is contained in:
parent
951044c17e
commit
01689af952
1 changed files with 2 additions and 2 deletions
|
|
@ -46,7 +46,7 @@ hterm.Keyboard.prototype.onKeyPress_ = function (e) {
|
||||||
};
|
};
|
||||||
|
|
||||||
const domainRegex = /\b((?=[a-z0-9-]{1,63}\.)(xn--)?[a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,63}\b/;
|
const domainRegex = /\b((?=[a-z0-9-]{1,63}\.)(xn--)?[a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,63}\b/;
|
||||||
const bashRegex = /bash: ((https?:\/\/)|(\/\/))?(.*): ((command not found)|(No such file or directory))/;
|
const bashRegex = /(ba)?sh: ((https?:\/\/)|(\/\/))?(.*): ((command not found)|(No such file or directory))/;
|
||||||
const zshRegex = /zsh: ((command not found)|(no such file or directory)): ((https?:\/\/)|(\/\/))?([^\n]+)/;
|
const zshRegex = /zsh: ((command not found)|(no such file or directory)): ((https?:\/\/)|(\/\/))?([^\n]+)/;
|
||||||
|
|
||||||
export default class Term extends Component {
|
export default class Term extends Component {
|
||||||
|
|
@ -116,7 +116,7 @@ export default class Term extends Component {
|
||||||
let url;
|
let url;
|
||||||
|
|
||||||
if (match) {
|
if (match) {
|
||||||
url = match[4];
|
url = match[5];
|
||||||
} else {
|
} else {
|
||||||
match = data.match(zshRegex);
|
match = data.match(zshRegex);
|
||||||
if (match) {
|
if (match) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue