trims values before checking lengths
This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -115,7 +115,7 @@ export function getOptions(): Configuration | false {
|
|||||||
// Validate tool inclusion configuration
|
// Validate tool inclusion configuration
|
||||||
const { enabledTools, disabledTools } = options;
|
const { enabledTools, disabledTools } = options;
|
||||||
|
|
||||||
if (enabledTools.length > 0 && disabledTools.length > 0) {
|
if (enabledTools.trim().length > 0 && disabledTools.trim().length > 0) {
|
||||||
console.error('Error: --enabled-tools and --disabled-tools cannot be used together');
|
console.error('Error: --enabled-tools and --disabled-tools cannot be used together');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user