@clipboard-health/ai-rules 2.24.0 → 2.24.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/scripts/sync.js +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clipboard-health/ai-rules",
3
- "version": "2.24.0",
3
+ "version": "2.24.1",
4
4
  "description": "Pre-built AI agent rules for consistent coding standards.",
5
5
  "keywords": [
6
6
  "ai",
package/scripts/sync.js CHANGED
@@ -233,8 +233,8 @@ async function mergeSessionStartHook() {
233
233
  async function extractHeading(filePath) {
234
234
  try {
235
235
  const content = await (0, promises_1.readFile)(filePath, "utf8");
236
- const match = /^#\s+(.+)$/m.exec(content);
237
- return match?.[1] ?? node_path_1.default.basename(filePath, ".md");
236
+ const match = /^#\s+(?<heading>.+)$/m.exec(content);
237
+ return match?.groups?.["heading"] ?? node_path_1.default.basename(filePath, ".md");
238
238
  }
239
239
  catch {
240
240
  return node_path_1.default.basename(filePath, ".md");