mirror of
https://gitea.com/actions/dorny-paths-filter.git
synced 2025-12-10 10:30:06 +00:00
Allow single line filters
This commit is contained in:
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 {
|
||||
|
||||
Reference in New Issue
Block a user