@sabinm677/ccommit 0.2.0 → 0.2.1

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": "@sabinm677/ccommit",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "AI-powered Git commit message generator with Conventional Commits output.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -6,9 +6,18 @@ function stripCodeFence(text) {
6
6
  return text;
7
7
  }
8
8
 
9
+ function stripCommitTrailers(text) {
10
+ return text
11
+ .split("\n")
12
+ .filter((line) => !/^co-authored-by:\s*/i.test(line.trim()))
13
+ .join("\n")
14
+ .trim();
15
+ }
16
+
9
17
  export function parseCommitMessage(rawOutput) {
10
18
  let text = stripCodeFence(rawOutput).trim();
11
19
  text = text.replace(/^commit message:\s*/i, "").trim();
12
20
  text = text.replace(/^message:\s*/i, "").trim();
21
+ text = stripCommitTrailers(text);
13
22
  return text;
14
23
  }