Allow single line filters

This commit is contained in:
Michal Dorner 2021-03-08 15:24:06 +01:00
parent 31c576896e
commit 68792bf56a
No known key found for this signature in database
GPG Key ID: 9EEE04B48DA36786
2 changed files with 2 additions and 2 deletions

2
dist/index.js vendored
View File

@ -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)) {

View File

@ -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 {