specvector 0.1.5 → 0.1.7
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/package.json +1 -1
- package/src/context/linear.ts +4 -3
- package/src/index.ts +1 -1
package/package.json
CHANGED
package/src/context/linear.ts
CHANGED
|
@@ -43,9 +43,10 @@ export function extractTicketId(
|
|
|
43
43
|
prTitle?: string,
|
|
44
44
|
prBody?: string
|
|
45
45
|
): string | null {
|
|
46
|
-
// Linear ticket pattern: 2-4
|
|
47
|
-
// Examples: SPC-123, D6N-5, ABC-42
|
|
48
|
-
|
|
46
|
+
// Linear ticket pattern: 2-4 chars starting with letter, hyphen, 1+ digits
|
|
47
|
+
// Examples: SPC-123, D6N-5, ABC-42, ENG-4412
|
|
48
|
+
// Note: Don't use \b at end - underscore is a word char and breaks matching for "ENG-4412_feature"
|
|
49
|
+
const ticketPattern = /\b([A-Z][A-Z0-9]{1,3}-\d+)/;
|
|
49
50
|
|
|
50
51
|
// Try branch name first (most reliable)
|
|
51
52
|
if (branchName) {
|
package/src/index.ts
CHANGED