diff --git a/lib/utils/url-command.js b/lib/utils/url-command.js index 5af379c8..239648ee 100644 --- a/lib/utils/url-command.js +++ b/lib/utils/url-command.js @@ -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; }