parseOperationNumber
Parses the operation number out of a bulk-operation commit subject.
Recognizes OP<n>: <summary>, OP<n> interrupted and chore: before OP<n>.
Import:
import { parseOperationNumber } from '@mnaoumov/obsidian-lib/bulk-operation';Signature:
function parseOperationNumber(subject: string): number | nullParameters:
| Parameter | Type | Description |
|---|---|---|
subject |
string | The commit subject. |
Returns: number | null — The operation number, or null when the subject is not a bulk-operation subject.