fix(exec-approvals): fix command token parsing
This commit is contained in:
1 parent
4206b9684b
commit
f6fefd7f5f
2 files changed
+2
-1
No files matched your search
@@ -242,7 +242,7 @@ function parseFirstToken(command: string): string | null {
|
||||
if (end > 1) return trimmed.slice(1, end);
|
||||
return trimmed.slice(1);
|
||||
}
|
||||
const match = /^[^\\s]+/.exec(trimmed);
|
||||
const match = /^\S+/.exec(trimmed);
|
||||
return match ? match[0] : null;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user