mirror of
https://github.com/dorny/paths-filter.git
synced 2025-01-13 20:05:35 +00:00
Allow single line filters
This commit is contained in:
parent
31c576896e
commit
68792bf56a
2
dist/index.js
vendored
2
dist/index.js
vendored
@ -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)) {
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user