@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/commands/sessions/web/bundle.js +354 -354
- package/dist/index.js +4 -2
- package/package.json +1 -1
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.
|
|
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
|
-
|
|
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
|
|