Fix url interpretation (#1259)

* Fix url interpretation

* update regex
This commit is contained in:
Philippe Potvin 2016-12-17 17:17:58 -05:00 committed by Guillermo Rauch
parent 25fcf3a6a4
commit b2f67c73e4
3 changed files with 8 additions and 22 deletions

View file

@ -1,5 +1,5 @@
import rpc from '../rpc';
import getURL from '../utils/url-command';
import isUrl from '../utils/url-command';
import {keys} from '../utils/object';
import findBySession from '../utils/term-groups';
import {
@ -56,7 +56,7 @@ export function addSessionData(uid, data) {
const {shell} = getState().sessions.sessions[uid];
const enterKey = Boolean(data.match(/\n/));
const url = enterKey ? getURL(shell, data) : null;
const url = enterKey ? isUrl(shell, data) : null;
if (url) {
dispatch({