summaryrefslogtreecommitdiffhomepage
path: root/sdks/github/src
diff options
context:
space:
mode:
Diffstat (limited to 'sdks/github/src')
-rw-r--r--sdks/github/src/index.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/sdks/github/src/index.ts b/sdks/github/src/index.ts
index fd6e08aa0..51ee4f704 100644
--- a/sdks/github/src/index.ts
+++ b/sdks/github/src/index.ts
@@ -43,8 +43,8 @@ let state:
async function run() {
try {
- const match = body.match(/^hey\s*opencode,?\s*(.*)$/)
- if (!match?.[1]) throw new Error("Command must start with `hey opencode`")
+ const match = body.match(/^hey\s*opencode,/)
+ if (!match?.[1]) throw new Error("Command must start with `hey opencode,`")
const userPrompt = match[1]
const oidcToken = await generateGitHubToken()