MCPcopy Index your code
hub / github.com/codeaashu/claude-code / parsePrIdentifier

Function parsePrIdentifier

src/screens/ResumeConversation.tsx:36–46  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

34import type { ContentReplacementRecord } from '../utils/toolResultStorage.js';
35import { REPL } from './REPL.js';
36function parsePrIdentifier(value: string): number | null {
37 const directNumber = parseInt(value, 10);
38 if (!isNaN(directNumber) && directNumber > 0) {
39 return directNumber;
40 }
41 const urlMatch = value.match(/github\.com\/[^/]+\/[^/]+\/pull\/(\d+)/);
42 if (urlMatch?.[1]) {
43 return parseInt(urlMatch[1], 10);
44 }
45 return null;
46}
47type Props = {
48 commands: Command[];
49 worktreePaths: string[];

Callers 1

ResumeConversationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected