mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-13 04:28:41 -09:00
Normalize shell name before selecting URL-matching regex (#2070)
This commit is contained in:
parent
4e9bd4d953
commit
d9dc415eff
1 changed files with 2 additions and 1 deletions
|
|
@ -1,7 +1,8 @@
|
|||
import path from 'path';
|
||||
import * as regex from './url-regex';
|
||||
|
||||
export default function isUrlCommand(shell, data) {
|
||||
const matcher = regex[shell]; // eslint-disable-line import/namespace
|
||||
const matcher = regex[path.parse(shell).name]; // eslint-disable-line import/namespace
|
||||
if (undefined === matcher || !data) {
|
||||
return null;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue