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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "specvector",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
4
4
  "description": "Context-aware AI code review using Model Context Protocol (MCP)",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
@@ -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 alphanumeric chars (at least one letter), hyphen, 1+ digits
47
- // Examples: SPC-123, D6N-5, ABC-42
48
- const ticketPattern = /\b([A-Z0-9]{2,4}-\d+)\b/;
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
@@ -244,4 +244,4 @@ function generateMockReview(filesReviewed: number): import("./types/review").Rev
244
244
  main().catch((error) => {
245
245
  console.error("Fatal error:", error);
246
246
  process.exit(1);
247
- });
247
+ });