@staff0rd/assist 0.877.2 → 0.878.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -6,7 +6,7 @@ import { Command } from "commander";
6
6
  // package.json
7
7
  var package_default = {
8
8
  name: "@staff0rd/assist",
9
- version: "0.877.2",
9
+ version: "0.878.0",
10
10
  type: "module",
11
11
  main: "dist/index.js",
12
12
  bin: {
@@ -44120,8 +44120,10 @@ function broadcast(clients, msg) {
44120
44120
 
44121
44121
  // src/commands/sessions/shared/promptIssueRef.ts
44122
44122
  var issuePrompt = /^Issue ([^\s#]+\/[^\s#]+)#(\d+):/;
44123
+ var issueUrlPrompt = /^https?:\/\/(?:www\.)?github\.com\/([^\s/#?]+\/[^\s/#?]+)\/issues\/(\d+)(?![^\s?#])/;
44123
44124
  function promptIssueRef(prompt) {
44124
- const match = prompt ? issuePrompt.exec(prompt) : null;
44125
+ if (!prompt) return void 0;
44126
+ const match = issuePrompt.exec(prompt) ?? issueUrlPrompt.exec(prompt.trim());
44125
44127
  return match ? `${match[1]}#${match[2]}` : void 0;
44126
44128
  }
44127
44129
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@staff0rd/assist",
3
- "version": "0.877.2",
3
+ "version": "0.878.0",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "bin": {