From 68792bf56a01ea3d5043c4a50063dc62185a03a6 Mon Sep 17 00:00:00 2001 From: Michal Dorner Date: Mon, 8 Mar 2021 15:24:06 +0100 Subject: [PATCH] Allow single line filters --- dist/index.js | 2 +- src/main.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index 815793f..da243b5 100644 --- a/dist/index.js +++ b/dist/index.js @@ -4673,7 +4673,7 @@ async function run() { } } function isPathInput(text) { - return !text.includes('\n'); + return !(text.includes('\n') || text.includes(':')); } function getConfigFileContent(configPath) { if (!fs.existsSync(configPath)) { diff --git a/src/main.ts b/src/main.ts index 395ab69..e3d6ebc 100644 --- a/src/main.ts +++ b/src/main.ts @@ -40,7 +40,7 @@ async function run(): Promise { } function isPathInput(text: string): boolean { - return !text.includes('\n') + return !(text.includes('\n') || text.includes(':')) } function getConfigFileContent(configPath: string): string {