Skip to content

Commit

Permalink
Allow single line filters
Browse files Browse the repository at this point in the history
  • Loading branch information
Michal Dorner committed Mar 8, 2021
1 parent 31c5768 commit 68792bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ async function run(): Promise<void> {
}

function isPathInput(text: string): boolean {
return !text.includes('\n')
return !(text.includes('\n') || text.includes(':'))
}

function getConfigFileContent(configPath: string): string {
Expand Down

0 comments on commit 68792bf

Please sign in to comment.